diff options
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 999346f3b1..e0bb21e063 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -163,14 +163,7 @@ class BytesTest(unittest.TestCase): f.write(b) with open(tfn, "rb") as f: self.assertEqual(f.read(), sample) - # Test writing in text mode - with open(tfn, "w") as f: - f.write(b) - with open(tfn, "r") as f: - self.assertEqual(f.read(), sample) - # Can't use readinto in text mode - with open(tfn, "r") as f: - self.assertRaises(TypeError, f.readinto, b) + # Text mode is ambiguous; don't test finally: try: os.remove(tfn) |