]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134429)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 May 2025 15:13:24 +0000 (17:13 +0200)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 15:13:24 +0000 (17:13 +0200)
(cherry picked from commit 84d5f8d799dbbf86248375b6edbbcf4a022788c4)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Lib/test/test_bufio.py

index dc9a82dc6353184b8c47b27e60cf221d2869ed93..cb9cb4d0bc7e9c0f29c510d4f74a43a8c1c7d2e0 100644 (file)
@@ -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()