[3.15] gh-151019: Fix test_os on 32-bit FreeBSD (GH-151087) (#151093)

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 3ae975f1ac.
(cherry picked from commit a9002349cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Miss Islington (bot) 2026-06-08 19:25:50 +02:00 committed by GitHub
parent 86e291e662
commit 199751ea6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3789,7 +3789,6 @@ async def test_trailers(self):
@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)
@ -3798,7 +3797,6 @@ async def test_headers_overflow_32bits(self):
@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)