@@ -19,12 +19,7 @@
|
19 | 19 | from functools import cached_property |
20 | 20 | |
21 | 21 | from . import _support as test_support |
22 | | -from ._support import ( |
23 | | -OS_ENV_LOCK, |
24 | | -TZPATH_LOCK, |
25 | | -TZPATH_TEST_LOCK, |
26 | | -ZoneInfoTestBase, |
27 | | -) |
| 22 | +from ._support import OS_ENV_LOCK, TZPATH_TEST_LOCK, ZoneInfoTestBase |
28 | 23 | |
29 | 24 | py_zoneinfo, c_zoneinfo = test_support.get_modules() |
30 | 25 | |
@@ -365,7 +360,6 @@ def test_folds_and_gaps(self):
|
365 | 360 | self.assertEqual(dt.dst(), offset.dst, dt) |
366 | 361 | |
367 | 362 | def test_folds_from_utc(self): |
368 | | -tests = [] |
369 | 363 | for key in self.zones(): |
370 | 364 | zi = self.zone_from_key(key) |
371 | 365 | with self.subTest(key=key): |
@@ -927,7 +921,7 @@ def populate_tzstr_header(cls):
|
927 | 921 | # the Version 2+ file. In this case, we have no transitions, just |
928 | 922 | # the tzstr in the footer, so up to the footer, the files are |
929 | 923 | # identical and we can just write the same file twice in a row. |
930 | | -for i in range(2): |
| 924 | +for _ in range(2): |
931 | 925 | out += b"TZif" # Magic value |
932 | 926 | out += b"3" # Version |
933 | 927 | out += b" " * 15 # Reserved |
@@ -952,7 +946,6 @@ def zone_from_tzstr(self, tzstr):
|
952 | 946 | return self.klass.from_file(zonefile, key=tzstr) |
953 | 947 | |
954 | 948 | def test_tzstr_localized(self): |
955 | | -i = 0 |
956 | 949 | for tzstr, cases in self.test_cases.items(): |
957 | 950 | with self.subTest(tzstr=tzstr): |
958 | 951 | zi = self.zone_from_tzstr(tzstr) |
|