Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 84d5f8d

Browse files
authoredMay 21, 2025··
gh-133982: Update test_bufio to use self.open (gh-133983)
1 parent b529b60 commit 84d5f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Lib/test/test_bufio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def try_one(self, s):
2828
f.write(b"\n")
2929
f.write(s)
3030
f.close()
31-
f = open(os_helper.TESTFN, "rb")
31+
f = self.open(os_helper.TESTFN, "rb")
3232
line = f.readline()
3333
self.assertEqual(line, s + b"\n")
3434
line = f.readline()

0 commit comments

Comments
 (0)
Please sign in to comment.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant