diff options
Diffstat (limited to 'Lib/test/test_complex.py')
| -rw-r--r-- | Lib/test/test_complex.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index 8299ca137d..116ce54b28 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py @@ -322,7 +322,7 @@ class ComplexTest(unittest.TestCase):              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()  | 
