mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Remove have_unicode checks and merge those tests into the
normal code (or drop them if they only repeat previous tests).
This commit is contained in:
parent
02427050c1
commit
1f5947b30a
7 changed files with 56 additions and 195 deletions
|
@ -242,8 +242,7 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
|
|||
self.assertEqual(True, issubclass(NewSuper, (NewChild, (NewSuper,))))
|
||||
|
||||
self.assertEqual(True, issubclass(int, (int, (float, int))))
|
||||
if test_support.have_unicode:
|
||||
self.assertEqual(True, issubclass(str, (str, (Child, NewChild, basestring))))
|
||||
self.assertEqual(True, issubclass(str, (str, (Child, NewChild, basestring))))
|
||||
|
||||
def test_subclass_recursion_limit(self):
|
||||
# make sure that issubclass raises RuntimeError before the C stack is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue