]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-151019: Fix test_os on 32-bit FreeBSD (GH-151087) (#151095)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jun 2026 17:20:57 +0000 (19:20 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 17:20:57 +0000 (17:20 +0000)
gh-151019: Fix test_os on 32-bit FreeBSD (GH-151087)

Remove references to server.handler_instance. This attribute has been
removed in 2022 by commit 3ae975f1ac880c47d51cca6c9e305547bd365be7.
(cherry picked from commit a9002349cbe3f2243fe53a9fcadd02318dd0caf9)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_os.py

index 268f4f6d01c2e12ce383026ba6d1d6ada76ebb11..9ee4fe564486f99d2e57d7c31d2987b9b19f0345 100644 (file)
@@ -3876,7 +3876,6 @@ class TestSendfile(unittest.IsolatedAsyncioTestCase):
     @requires_headers_trailers
     @requires_32b
     async def test_headers_overflow_32bits(self):
-        self.server.handler_instance.accumulate = False
         with self.assertRaises(OSError) as cm:
             await self.async_sendfile(self.sockno, self.fileno, 0, 0,
                                       headers=[b"x" * 2**16] * 2**15)
@@ -3885,7 +3884,6 @@ class TestSendfile(unittest.IsolatedAsyncioTestCase):
     @requires_headers_trailers
     @requires_32b
     async def test_trailers_overflow_32bits(self):
-        self.server.handler_instance.accumulate = False
         with self.assertRaises(OSError) as cm:
             await self.async_sendfile(self.sockno, self.fileno, 0, 0,
                                       trailers=[b"x" * 2**16] * 2**15)