mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #32365 -- Removed support for pytz timezones per deprecation timeline.
This commit is contained in:
@@ -15,11 +15,6 @@ try:
|
||||
except ImportError:
|
||||
from backports import zoneinfo
|
||||
|
||||
try:
|
||||
import pytz
|
||||
except ImportError:
|
||||
pytz = None
|
||||
|
||||
import custom_migration_operations.more_operations
|
||||
import custom_migration_operations.operations
|
||||
|
||||
@@ -595,16 +590,6 @@ class WriterTests(SimpleTestCase):
|
||||
{"import datetime"},
|
||||
),
|
||||
)
|
||||
if pytz:
|
||||
self.assertSerializedResultEqual(
|
||||
pytz.timezone("Europe/Paris").localize(
|
||||
datetime.datetime(2012, 1, 1, 2, 1)
|
||||
),
|
||||
(
|
||||
"datetime.datetime(2012, 1, 1, 1, 1, tzinfo=datetime.timezone.utc)",
|
||||
{"import datetime"},
|
||||
),
|
||||
)
|
||||
|
||||
def test_serialize_fields(self):
|
||||
self.assertSerializedFieldEqual(models.CharField(max_length=255))
|
||||
|
||||
Reference in New Issue
Block a user