aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_zoneinfo/test_zoneinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_zoneinfo/test_zoneinfo.py')
-rw-r--r--Lib/test/test_zoneinfo/test_zoneinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py b/Lib/test/test_zoneinfo/test_zoneinfo.py
index d2845495c7f..f313e394f49 100644
--- a/Lib/test/test_zoneinfo/test_zoneinfo.py
+++ b/Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -1915,8 +1915,8 @@ class ExtensionBuiltTest(unittest.TestCase):
def test_cache_location(self):
# The pure Python version stores caches on attributes, but the C
# extension stores them in C globals (at least for now)
- self.assertFalse(hasattr(c_zoneinfo.ZoneInfo, "_weak_cache"))
- self.assertTrue(hasattr(py_zoneinfo.ZoneInfo, "_weak_cache"))
+ self.assertNotHasAttr(c_zoneinfo.ZoneInfo, "_weak_cache")
+ self.assertHasAttr(py_zoneinfo.ZoneInfo, "_weak_cache")
def test_gc_tracked(self):
import gc