mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Disable a few other tests, that can't work if Python is compiled without
Unicode support.
This commit is contained in:
parent
649f8e7de2
commit
4e41a4b64c
4 changed files with 30 additions and 18 deletions
|
@ -243,7 +243,8 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
|
|||
self.assertEqual(True, issubclass(NewSuper, (NewChild, (NewSuper,))))
|
||||
|
||||
self.assertEqual(True, issubclass(int, (long, (float, int))))
|
||||
self.assertEqual(True, issubclass(str, (unicode, (Child, NewChild, basestring))))
|
||||
if test_support.have_unicode:
|
||||
self.assertEqual(True, issubclass(str, (unicode, (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