From 22dd853bda9dea5a59caf76c0d9161d99e619030 Mon Sep 17 00:00:00 2001 From: "Terence D. Honles" Date: Tue, 6 Apr 2021 19:37:43 -0700 Subject: [PATCH] fix tests with mock timezone after django/django#13877 --- tests/test_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index 5842553f0..78a9effb8 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1485,7 +1485,7 @@ class TestNaiveDayLightSavingTimeTimeZoneDateTimeField(FieldValues): } outputs = {} - class MockTimezone: + class MockTimezone(pytz.BaseTzInfo): @staticmethod def localize(value, is_dst): raise pytz.InvalidTimeError()