summaryrefslogtreecommitdiffhomepage
path: root/tests/test_file.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-03-10 13:55:53 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-03-10 13:55:53 -0500
commitcbfdc10c8f94e7242420ad43cede3c96c33edc53 (patch)
treed6099c1a11c5964cfefecfc110d10718bf8f9a20 /tests/test_file.py
parent08eb98d63f5f03172ce4734096e7013a56c560ac (diff)
parente465da57a07072ccc9500c85cac1e86dda52d19b (diff)
Merge branch 'main' into 2013-int
Diffstat (limited to 'tests/test_file.py')
-rw-r--r--tests/test_file.py5
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()