Disable a few other tests, that can't work if Python is compiled without

Unicode support.
This commit is contained in:
Walter Dörwald 2005-08-03 17:09:04 +00:00
parent 649f8e7de2
commit 4e41a4b64c
4 changed files with 30 additions and 18 deletions

View file

@ -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