diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-02-15 21:58:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 21:58:48 (GMT) |
commit | c1ce0d178fe57b50f37578b285a343d77485ac02 (patch) | |
tree | 0278769834169272434cde8833fe58befc955f52 /Lib/test/test_zoneinfo | |
parent | eb0c485b6c836abb71932537a5058344d11d7bc8 (diff) | |
download | cpython-c1ce0d178fe57b50f37578b285a343d77485ac02.zip cpython-c1ce0d178fe57b50f37578b285a343d77485ac02.tar.gz cpython-c1ce0d178fe57b50f37578b285a343d77485ac02.tar.bz2 |
gh-99138: Isolate _zoneinfo (#99218)
* Convert zone info type to heap type and add it to module state
* Add global variables to module state
Diffstat (limited to 'Lib/test/test_zoneinfo')
-rw-r--r-- | Lib/test/test_zoneinfo/test_zoneinfo.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py b/Lib/test/test_zoneinfo/test_zoneinfo.py index fd0e3bc..82041a2 100644 --- a/Lib/test/test_zoneinfo/test_zoneinfo.py +++ b/Lib/test/test_zoneinfo/test_zoneinfo.py @@ -1797,12 +1797,10 @@ class ExtensionBuiltTest(unittest.TestCase): self.assertTrue(hasattr(py_zoneinfo.ZoneInfo, "_weak_cache")) def test_gc_tracked(self): - # The pure Python version is tracked by the GC but (for now) the C - # version is not. import gc self.assertTrue(gc.is_tracked(py_zoneinfo.ZoneInfo)) - self.assertFalse(gc.is_tracked(c_zoneinfo.ZoneInfo)) + self.assertTrue(gc.is_tracked(c_zoneinfo.ZoneInfo)) @dataclasses.dataclass(frozen=True) |