mirror of
https://github.com/django/django.git
synced 2024-12-27 11:35:53 +00:00
[4.2.x] Refs #34483 -- Fixed utils_tests.test_timesince crash on Python 3.8.
This commit is contained in:
parent
a3c14ea61b
commit
cd464fbc3a
@ -1,5 +1,9 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import zoneinfo
|
|
||||||
|
try:
|
||||||
|
import zoneinfo
|
||||||
|
except ImportError:
|
||||||
|
from backports import zoneinfo
|
||||||
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.test.utils import override_settings, requires_tz_support
|
from django.test.utils import override_settings, requires_tz_support
|
||||||
|
Loading…
Reference in New Issue
Block a user