https://github.com/python/cpython/commit/84d5f8d799dbbf86248375b6edbbcf4a022788c4
commit: 84d5f8d799dbbf86248375b6edbbcf4a022788c4
branch: main
author: Cody Maloney <[email protected]>
committer: ambv <[email protected]>
date: 2025-05-21T16:40:50+02:00
summary:
gh-133982: Update test_bufio to use self.open (gh-133983)
files:
M Lib/test/test_bufio.py
diff --git a/Lib/test/test_bufio.py b/Lib/test/test_bufio.py
index dc9a82dc635318..cb9cb4d0bc7e9c 100644
--- a/Lib/test/test_bufio.py
+++ b/Lib/test/test_bufio.py
@@ -28,7 +28,7 @@ def try_one(self, s):
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()
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]