mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-133982: Update test_bufio to use self.open (gh-133983)
This commit is contained in:
parent
b529b60fc2
commit
84d5f8d799
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class BufferSizeTest:
|
|||
f.write(b"\n")
|
||||
f.write(s)
|
||||
f.close()
|
||||
f = open(os_helper.TESTFN, "rb")
|
||||
f = self.open(os_helper.TESTFN, "rb")
|
||||
line = f.readline()
|
||||
self.assertEqual(line, s + b"\n")
|
||||
line = f.readline()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue