commit | 39478e852827a4ca6955151bf004c7a15099a4b1 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Aug 27 17:23:59 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Aug 27 17:23:59 2007 +0000 |
tree | 05e52988c7904b7c7dad9427411bece5f9c45fcb | |
parent | 85825dc1ff5cc21c5f3f453b30b825a7200609cb [diff] [blame] |
Changes in anticipation of stricter str vs. bytes enforcement.
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index 8299ca1..116ce54 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py
@@ -322,7 +322,7 @@ print(a, b, file=fo) fo.close() fo = open(test_support.TESTFN, "rb") - self.assertEqual(fo.read(), bytes("%s %s\n" % (a, b))) + self.assertEqual(fo.read(), ("%s %s\n" % (a, b)).encode("ascii")) finally: if (fo is not None) and (not fo.closed): fo.close()