]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-151019: Fix test_os on 32-bit FreeBSD (#151087)
authorVictor Stinner <vstinner@python.org>
Mon, 8 Jun 2026 16:57:07 +0000 (18:57 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 16:57:07 +0000 (18:57 +0200)
Remove references to server.handler_instance. This attribute has been
removed in 2022 by commit 3ae975f1ac880c47d51cca6c9e305547bd365be7.

Lib/test/test_os/test_os.py

index 68cb32cd40be30679b088183519a50181ae5c4ee..b88388e091312a0fa1422812c59109362d03f82b 100644 (file)
@@ -3793,7 +3793,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)
@@ -3802,7 +3801,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)