diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-27 18:00:20 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-27 18:00:20 -0500 |
commit | 65e392214697567b340a14c9f6dfb63011f9a35a (patch) | |
tree | 3e2a926e1a5eb77cdc15a3b51039e1e287e6f004 /tests | |
parent | d766ba92f4775b8a70f8ea3606dceb28eefa8810 (diff) |
Twiddle File test to lack faux-misspellings in its cut-up strings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_file.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_file.py b/tests/test_file.py index 364bbce2..456c0388 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -127,8 +127,9 @@ class BufferedFileTest(unittest.TestCase): f.write("Not\nquite\n512 bytes.\n") self.assertEqual(f.read(1), b"") f.flush() - self.assertEqual(f.read(5), b"Not\nq") - self.assertEqual(f.read(10), b"uite\n512 b") + self.assertEqual(f.read(6), b"Not\nqu") + self.assertEqual(f.read(4), b"ite\n") + self.assertEqual(f.read(5), b"512 b") self.assertEqual(f.read(9), b"ytes.\n") self.assertEqual(f.read(3), b"") f.close() |