summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_iter.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-11 21:38:39 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-11 21:38:39 (GMT)
commit5de48bdd195b14426c772b4c61290aef7f33e3ec (patch)
treee4411088f62f76b183b18d543b4c4b64d4076d65 /Lib/test/test_iter.py
parent80bfb725af0809308264d526ac6a024fc8386643 (diff)
downloadcpython-5de48bdd195b14426c772b4c61290aef7f33e3ec.zip
cpython-5de48bdd195b14426c772b4c61290aef7f33e3ec.tar.gz
cpython-5de48bdd195b14426c772b4c61290aef7f33e3ec.tar.bz2
Simplify various spots where: str() is called on something
that already is a string or the existence of the str class is checked or a check is done for str twice. These all stem from the initial unicode->str replacement.
Diffstat (limited to 'Lib/test/test_iter.py')
-rw-r--r--Lib/test/test_iter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py
index 42d4e3e..f7712db 100644
--- a/Lib/test/test_iter.py
+++ b/Lib/test/test_iter.py
@@ -526,7 +526,7 @@ class TestCase(unittest.TestCase):
# and pass that on to unicode.join().
try:
got = " - ".join(OhPhooey(f))
- self.assertEqual(got, str("a\n - b\n - fooled you! - c\n"))
+ self.assertEqual(got, "a\n - b\n - fooled you! - c\n")
finally:
f.close()
try: