bpo-31333: Re-implement ABCMeta in C (GH-5733)

This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.
This commit is contained in:
Ivan Levkivskyi 2018-02-18 17:39:43 +00:00 committed by GitHub
parent 7da582d3b5
commit 3892899288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1638 additions and 534 deletions

View file

@ -761,8 +761,8 @@ class GenericTests(BaseTestCase):
self.assertIsInstance(1, C)
C[int]
self.assertIsInstance(1, C)
C._abc_registry.clear()
C._abc_cache.clear() # To keep refleak hunting mode clean
C._abc_registry_clear()
C._abc_caches_clear() # To keep refleak hunting mode clean
def test_false_subclasses(self):
class MyMapping(MutableMapping[str, str]): pass