summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
authorIvan Levkivskyi <levkivskyi@gmail.com>2018-02-18 12:41:58 (GMT)
committerGitHub <noreply@github.com>2018-02-18 12:41:58 (GMT)
commit03e3c340a0156891a036d6dbdb9e348108826255 (patch)
tree5b897f150d3855868c7cf3c2fb1c7c6a313d4e31 /Lib/test/test_typing.py
parent667b91a5e210e20946ad41f1796c544a1becf1b6 (diff)
downloadcpython-03e3c340a0156891a036d6dbdb9e348108826255.zip
cpython-03e3c340a0156891a036d6dbdb9e348108826255.tar.gz
cpython-03e3c340a0156891a036d6dbdb9e348108826255.tar.bz2
bpo-31333: Re-implement ABCMeta in C (#5273)
This adds C versions of methods used by ABCMeta that improve performance of various ABC operations.
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r--Lib/test/test_typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 3f24faf..f56caa1 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -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