diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-03-30 14:35:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 14:35:38 (GMT) |
commit | 53e4c91725083975598350877e2ed8e2d0194114 (patch) | |
tree | 4718be274afd820f2b2064d78fb47664e3ee606d /Lib/test/test_abc.py | |
parent | ce105541f8ebcf2dffcadedfdeffdb698a0edb44 (diff) | |
download | cpython-53e4c91725083975598350877e2ed8e2d0194114.zip cpython-53e4c91725083975598350877e2ed8e2d0194114.tar.gz cpython-53e4c91725083975598350877e2ed8e2d0194114.tar.bz2 |
bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202)
Replace statically allocated types with heap allocated types:
use PyType_FromSpec().
Add a module state to store the _abc_data_type.
Add traverse, clear and free functions to the module.
Diffstat (limited to 'Lib/test/test_abc.py')
-rw-r--r-- | Lib/test/test_abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_abc.py b/Lib/test/test_abc.py index 000e583..7e9c47b 100644 --- a/Lib/test/test_abc.py +++ b/Lib/test/test_abc.py @@ -326,7 +326,7 @@ def test_factory(abc_ABCMeta, abc_get_cache_token): token_old = abc_get_cache_token() A.register(B) token_new = abc_get_cache_token() - self.assertNotEqual(token_old, token_new) + self.assertGreater(token_new, token_old) self.assertTrue(isinstance(b, A)) self.assertTrue(isinstance(b, (A,))) |