Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c612a4d

Browse filesBrowse files
[3.14] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134428)
(cherry picked from commit 84d5f8d) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
1 parent 2ffc10b commit c612a4d
Copy full SHA for c612a4d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Lib/test/test_bufio.py

Copy file name to clipboardExpand all lines: Lib/test/test_bufio.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.