summaryrefslogtreecommitdiff
path: root/Lib/test/test_iter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
committerGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
commitb073f81ebad8246da83b7c7aef0031e86ad228ef (patch)
tree65721adc3d7eb83905fae992a9252af31bb0b702 /Lib/test/test_iter.py
parented9f1907286ed2cb9109ccb72f318ea249e6c295 (diff)
downloadcpython-b073f81ebad8246da83b7c7aef0031e86ad228ef.tar.gz
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 65e143d10b..5a75c50094 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: