mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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
@@ -909,7 +909,7 @@ class WriterTests(SimpleTestCase):
|
||||
Test comments at top of file.
|
||||
"""
|
||||
migration = type("Migration", (migrations.Migration,), {"operations": []})
|
||||
dt = datetime.datetime(2015, 7, 31, 4, 40, 0, 0, tzinfo=utc)
|
||||
dt = datetime.datetime(2015, 7, 31, 4, 40, 0, 0, tzinfo=datetime.timezone.utc)
|
||||
with mock.patch("django.db.migrations.writer.now", lambda: dt):
|
||||
for include_header in (True, False):
|
||||
with self.subTest(include_header=include_header):
|
||||
|
||||
Reference in New Issue
Block a user