Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_isinstance.py @ 43577:ace45b361e87
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 16 Oct 2007 18:12:55 +0000 |
| parents | 6464cc638faa |
| children | 9c930a32cebb |
line wrap: on
line diff
--- a/Lib/test/test_isinstance.py Tue Oct 16 06:31:30 2007 +0000 +++ b/Lib/test/test_isinstance.py Tue Oct 16 18:12:55 2007 +0000 @@ -242,7 +242,7 @@ self.assertEqual(True, issubclass(NewSuper, (NewChild, (NewSuper,)))) self.assertEqual(True, issubclass(int, (int, (float, int)))) - self.assertEqual(True, issubclass(str, (str, (Child, NewChild, basestring)))) + self.assertEqual(True, issubclass(str, (str, (Child, NewChild, str)))) def test_subclass_recursion_limit(self): # make sure that issubclass raises RuntimeError before the C stack is
