mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)
(cherry picked from commit 2602d8ae98)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
d5f7e80d44
commit
db98e0bb12
117 changed files with 407 additions and 445 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue