diff options
Diffstat (limited to 'Lib/test/test_abc.py')
-rw-r--r-- | Lib/test/test_abc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_abc.py b/Lib/test/test_abc.py index 008d839..e6c8415 100644 --- a/Lib/test/test_abc.py +++ b/Lib/test/test_abc.py @@ -81,9 +81,11 @@ class TestABC(unittest.TestCase): self.assertEqual(issubclass(int, A), True) class B(A): pass - B.register(basestring) + B.register(str) + class C(str): pass self.assertEqual(isinstance("", A), True) self.assertEqual(issubclass(str, A), True) + self.assertEqual(issubclass(C, A), True) def test_registration_edge_cases(self): class A(metaclass=abc.ABCMeta): |