diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-13 08:22:41 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-17 11:49:15 +0100 |
commit | d6816bff73b37af05c968c009419c7c608e37307 (patch) | |
tree | a306cc06494247c2a106cff0b4b7af3c491f3902 /tests/timezones | |
parent | 9a01311d204ebf23e615a0802cedcc7b6b373826 (diff) | |
download | django-d6816bff73b37af05c968c009419c7c608e37307.tar.gz |
Refs #32365 -- Removed django.utils.timezone.utc per deprecation timeline.
Diffstat (limited to 'tests/timezones')
-rw-r--r-- | tests/timezones/tests.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index 89e87172f1..56784db207 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -33,7 +33,6 @@ from django.test import ( from django.test.utils import requires_tz_support from django.urls import reverse from django.utils import timezone, translation -from django.utils.deprecation import RemovedInDjango50Warning from django.utils.timezone import timedelta from .forms import ( @@ -74,19 +73,6 @@ EAT = timezone.get_fixed_timezone(180) # Africa/Nairobi ICT = timezone.get_fixed_timezone(420) # Asia/Bangkok -class UTCAliasTests(SimpleTestCase): - def test_alias_deprecation_warning(self): - msg = ( - "The django.utils.timezone.utc alias is deprecated. " - "Please update your code to use datetime.timezone.utc instead." - ) - with self.assertRaisesMessage(RemovedInDjango50Warning, msg): - timezone.utc - - def test_timezone_module_dir_includes_utc(self): - self.assertIn("utc", dir(timezone)) - - @contextmanager def override_database_connection_timezone(timezone): try: |