mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Refs #32365 -- Removed internal uses of utils.timezone.utc alias.
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
This commit is contained in:
committed by
Mariusz Felisiak
parent
1cf60ce601
commit
bb61f0186d
@@ -17,7 +17,6 @@ from django.core.management import CommandError, call_command
|
||||
from django.core.management.base import SystemCheckError
|
||||
from django.test import RequestFactory, override_settings
|
||||
from django.test.utils import extend_sys_path
|
||||
from django.utils import timezone
|
||||
from django.utils._os import symlinks_supported
|
||||
from django.utils.functional import empty
|
||||
|
||||
@@ -531,7 +530,7 @@ class TestCollectionNonLocalStorage(TestNoFilesCreated, CollectionTestCase):
|
||||
storage = DummyStorage()
|
||||
self.assertEqual(
|
||||
storage.get_modified_time("name"),
|
||||
datetime.datetime(1970, 1, 1, tzinfo=timezone.utc),
|
||||
datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
|
||||
)
|
||||
with self.assertRaisesMessage(
|
||||
NotImplementedError, "This backend doesn't support absolute paths."
|
||||
|
||||
Reference in New Issue
Block a user