#25562: Time dependent test on Windows:
admin_filters.tests.ListFiltersTests.test_datefieldlistfilter_with_time_zone_support
-------------------------------+------------------------------------
     Reporter:  timgraham      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by timgraham):

 * cc: bgianfo, aaugustin (added)


Comment:

 The issue here seems to related to ticket #2315 and
 
[https://github.com/django/django/blob/f59a0401e5d0e19568a038f2a50954d1a9a1526f/django/conf/__init__.py#L119-L129
 the lack of time.tzset() on Windows]. This causes
 
[https://github.com/django/django/blob/f59a0401e5d0e19568a038f2a50954d1a9a1526f/tests/admin_filters/tests.py#L231
 datetime.date.today] to return a different value on Windows (ignoring the
 time zone) than on Unix because the time zone that Django sets is never
 activated on Windows.

 Absent another solution, we can skip the test on Windows, but I'm not sure
 what this means for timezone support on Windows in general. A note in
 [https://docs.djangoproject.com/en/stable/topics/i18n/timezones/ the
 timezone docs] might be useful.

--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.4b505c110dc07804e3452ba6344edcea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to