diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-08-03 17:09:04 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-08-03 17:09:04 (GMT) |
commit | 4e41a4b64cb9e69d15ebe0cdf752c5e105318a94 (patch) | |
tree | 84023b8389b53f9847b961a7b5f36c425ef94da9 /Lib/test/test_isinstance.py | |
parent | 649f8e7de2ad8fc42748b56e8e64574478d2d7fe (diff) | |
download | cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.zip cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.tar.gz cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.tar.bz2 |
Disable a few other tests, that can't work if Python is compiled without
Unicode support.
Diffstat (limited to 'Lib/test/test_isinstance.py')
-rw-r--r-- | Lib/test/test_isinstance.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_isinstance.py b/Lib/test/test_isinstance.py index 89ef200..25b0816 100644 --- a/Lib/test/test_isinstance.py +++ b/Lib/test/test_isinstance.py @@ -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 |