summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-05-25 16:41:50 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2013-05-25 16:41:50 (GMT)
commiteadd8cf507e876a6ea4c338a0004954d2d732ac0 (patch)
tree5231b12d19eacda81a3eb49f85265fd099619276 /Lib/test
parentb961955e95107e7667944e91bea50bfb760285b7 (diff)
downloadcpython-eadd8cf507e876a6ea4c338a0004954d2d732ac0.zip
cpython-eadd8cf507e876a6ea4c338a0004954d2d732ac0.tar.gz
cpython-eadd8cf507e876a6ea4c338a0004954d2d732ac0.tar.bz2
Fix #16832 - expose cache validity checking support in ABCMeta
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_abc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_abc.py b/Lib/test/test_abc.py
index 3498524..4b15157 100644
--- a/Lib/test/test_abc.py
+++ b/Lib/test/test_abc.py
@@ -329,7 +329,10 @@ class TestABC(unittest.TestCase):
b = B()
self.assertFalse(isinstance(b, A))
self.assertFalse(isinstance(b, (A,)))
+ token_old = abc.get_cache_token()
A.register(B)
+ token_new = abc.get_cache_token()
+ self.assertNotEqual(token_old, token_new)
self.assertTrue(isinstance(b, A))
self.assertTrue(isinstance(b, (A,)))