summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_iter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-02 19:09:54 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-02 19:09:54 (GMT)
commitef87d6ed94780fe00250a551031023aeb2898365 (patch)
tree1f8989aaaec7ec5f8b2f26498317f2022bf85531 /Lib/test/test_iter.py
parent572dbf8f1320c0b34b9c786e5c30ba4a4b61b292 (diff)
downloadcpython-ef87d6ed94780fe00250a551031023aeb2898365.zip
cpython-ef87d6ed94780fe00250a551031023aeb2898365.tar.gz
cpython-ef87d6ed94780fe00250a551031023aeb2898365.tar.bz2
Rip out all the u"..." literals and calls to unicode().
Diffstat (limited to 'Lib/test/test_iter.py')
-rw-r--r--Lib/test/test_iter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py
index 65e143d..5a75c50 100644
--- a/Lib/test/test_iter.py
+++ b/Lib/test/test_iter.py
@@ -216,9 +216,9 @@ class TestCase(unittest.TestCase):
# Test a Unicode string
if have_unicode:
def test_iter_unicode(self):
- self.check_for_loop(iter(unicode("abcde")),
- [unicode("a"), unicode("b"), unicode("c"),
- unicode("d"), unicode("e")])
+ self.check_for_loop(iter(str("abcde")),
+ [str("a"), str("b"), str("c"),
+ str("d"), str("e")])
# Test a directory
def test_iter_dict(self):
@@ -518,7 +518,7 @@ class TestCase(unittest.TestCase):
i = self.i
self.i = i+1
if i == 2:
- return unicode("fooled you!")
+ return str("fooled you!")
return next(self.it)
f = open(TESTFN, "w")
@@ -535,7 +535,7 @@ class TestCase(unittest.TestCase):
# and pass that on to unicode.join().
try:
got = " - ".join(OhPhooey(f))
- self.assertEqual(got, unicode("a\n - b\n - fooled you! - c\n"))
+ self.assertEqual(got, str("a\n - b\n - fooled you! - c\n"))
finally:
f.close()
try: