mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134428)
(cherry picked from commit 84d5f8d799
)
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
This commit is contained in:
parent
2ffc10bd39
commit
c612a4d2c0
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class BufferSizeTest:
|
||||||
f.write(b"\n")
|
f.write(b"\n")
|
||||||
f.write(s)
|
f.write(s)
|
||||||
f.close()
|
f.close()
|
||||||
f = open(os_helper.TESTFN, "rb")
|
f = self.open(os_helper.TESTFN, "rb")
|
||||||
line = f.readline()
|
line = f.readline()
|
||||||
self.assertEqual(line, s + b"\n")
|
self.assertEqual(line, s + b"\n")
|
||||||
line = f.readline()
|
line = f.readline()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue