From: Victor Stinner Date: Mon, 8 Jun 2026 16:57:07 +0000 (+0200) Subject: gh-151019: Fix test_os on 32-bit FreeBSD (#151087) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9002349cbe3f2243fe53a9fcadd02318dd0caf9;p=thirdparty%2FPython%2Fcpython.git gh-151019: Fix test_os on 32-bit FreeBSD (#151087) Remove references to server.handler_instance. This attribute has been removed in 2022 by commit 3ae975f1ac880c47d51cca6c9e305547bd365be7. --- diff --git a/Lib/test/test_os/test_os.py b/Lib/test/test_os/test_os.py index 68cb32cd40be..b88388e09131 100644 --- a/Lib/test/test_os/test_os.py +++ b/Lib/test/test_os/test_os.py @@ -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)