8000 django-test-suite: TIMESTAMP_TRUNC with timezone not working as expected · Issue #191 · googleapis/python-spanner-django · GitHub
[go: up one dir, main page]

Skip to content
django-test-suite: TIMESTAMP_TRUNC with timezone not working as expected #191
Open
@timgraham

Description

@timgraham

Failure:

======================================================================
FAIL: test_query_datetimes (timezones.tests.NewDatabaseTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tim/code/django/django/test/testcases.py", line 1229, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/home/tim/code/django/tests/timezones/tests.py", line 396, in test_query_datetimes
    [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)]
AssertionError: Sequences differ: <QuerySet [datetime.datetime(2010, 12, 31[58 chars]D>)]> != [datetime.datetime(2011, 1, 1, 0, 0, tzin[61 chars]0'))]

First differing element 0:
datetime.datetime(2010, 12, 31, 21, 0, tzinfo=<DstTzInfo 'Afri[24 chars]STD>)
datetime.datetime(2011, 1, 1, 0, 0, tzinfo=datetime.timezone(d[38 chars]00'))

- <QuerySet [datetime.datetime(2010, 12, 31, 21, 0, tzinfo=<DstTzInfo 'Africa/Nairobi' EAT+3:00:00 STD>)]>
+ [datetime.datetime(2011, 1, 1, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(seconds=10800), '+0300'))]

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: spannerIssues related to the googleapis/python-spanner-django API.blockedIssues that cannot be implemented because of some limitdjango-test-suitepriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0