diff options
author | Guido van Rossum <guido@python.org> | 2007-07-03 16:59:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-03 16:59:47 (GMT) |
commit | 07d4e78b0f5ffcc5fdfebbf20b1e87a07064fed6 (patch) | |
tree | 09ee69bc87a95f245da7004a88f25a1cbe6865c2 /Lib/test/test_collections.py | |
parent | 0c41e887bd722aa08f45fc3387f24cf39e7f8c4b (diff) | |
download | cpython-07d4e78b0f5ffcc5fdfebbf20b1e87a07064fed6.zip cpython-07d4e78b0f5ffcc5fdfebbf20b1e87a07064fed6.tar.gz cpython-07d4e78b0f5ffcc5fdfebbf20b1e87a07064fed6.tar.bz2 |
Remove a few unicode references accidentally merged in.
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 13401e9..ade5da2 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -70,7 +70,7 @@ class TestOneTrickPonyABCs(unittest.TestCase): # Check some hashables samples = [None, int(), float(), complex(), - str(), unicode(), + str(), tuple(), frozenset(), int, list, object, type, ] @@ -92,7 +92,7 @@ class TestOneTrickPonyABCs(unittest.TestCase): self.failIf(isinstance(x, Iterable), repr(x)) self.failIf(issubclass(type(x), Iterable), repr(type(x))) # Check some iterables - samples = [bytes(), str(), unicode(), + samples = [bytes(), str(), tuple(), list(), set(), frozenset(), dict(), dict().keys(), dict().items(), dict().values(), (lambda: (yield))(), @@ -109,11 +109,11 @@ class TestOneTrickPonyABCs(unittest.TestCase): self.failIf(issubclass(str, I)) def test_Iterator(self): - non_samples = [None, 42, 3.14, 1j, b"", "", u"", (), [], {}, set()] + non_samples = [None, 42, 3.14, 1j, b"", "", (), [], {}, set()] for x in non_samples: self.failIf(isinstance(x, Iterator), repr(x)) self.failIf(issubclass(type(x), Iterator), repr(type(x))) - samples = [iter(bytes()), iter(str()), iter(unicode()), + samples = [iter(bytes()), iter(str()), iter(tuple()), iter(list()), iter(dict()), iter(set()), iter(frozenset()), iter(dict().keys()), iter(dict().items()), @@ -133,7 +133,7 @@ class TestOneTrickPonyABCs(unittest.TestCase): for x in non_samples: self.failIf(isinstance(x, Sized), repr(x)) self.failIf(issubclass(type(x), Sized), repr(type(x))) - samples = [bytes(), str(), unicode(), + samples = [bytes(), str(), tuple(), list(), set(), frozenset(), dict(), dict().keys(), dict().items(), dict().values(), ] @@ -149,7 +149,7 @@ class TestOneTrickPonyABCs(unittest.TestCase): for x in non_samples: self.failIf(isinstance(x, Container), repr(x)) self.failIf(issubclass(type(x), Container), repr(type(x))) - samples = [bytes(), str(), unicode(), + samples = [bytes(), str(), tuple(), list(), set(), frozenset(), dict(), dict().keys(), dict().items(), ] |