summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-09 09:52:26 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-17 11:49:15 +0100
commit2fad1632571af551d6065d7eced93ffe93a8a945 (patch)
treeb926abed87ff568f36f42c18758a6cb56711f2a0 /tests
parente6f82438d4e3750e8d299bfd79dac98eebe9f1e0 (diff)
Refs #32365 -- Removed is_dst argument for various methods and functions.
Per deprecation timeline.
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests/test_timezone.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/utils_tests/test_timezone.py b/tests/utils_tests/test_timezone.py
index 6ec8828561..931347ad46 100644
--- a/tests/utils_tests/test_timezone.py
+++ b/tests/utils_tests/test_timezone.py
@@ -8,7 +8,6 @@ except ImportError:
from django.test import SimpleTestCase, override_settings
from django.utils import timezone
-from django.utils.deprecation import RemovedInDjango50Warning
PARIS_ZI = zoneinfo.ZoneInfo("Europe/Paris")
EAT = timezone.get_fixed_timezone(180) # Africa/Nairobi
@@ -226,17 +225,6 @@ class TimezoneTests(SimpleTestCase):
self.assertEqual(std.utcoffset(), datetime.timedelta(hours=1))
self.assertEqual(dst.utcoffset(), datetime.timedelta(hours=2))
- def test_make_aware_is_dst_deprecation_warning(self):
- msg = (
- "The is_dst argument to make_aware(), used by the Trunc() "
- "database functions and QuerySet.datetimes(), is deprecated as it "
- "has no effect with zoneinfo time zones."
- )
- with self.assertRaisesMessage(RemovedInDjango50Warning, msg):
- timezone.make_aware(
- datetime.datetime(2011, 9, 1, 13, 20, 30), EAT, is_dst=True
- )
-
def test_get_timezone_name(self):
"""
The _get_timezone_name() helper must return the offset for fixed offset