diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2020-09-05 19:10:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 19:10:01 (GMT) |
commit | 8c0be6fd9101746235b63ddfb84106d1e9ca286b (patch) | |
tree | e4559bbc18f13fd971dc4136c71e3729664c2896 /Lib/test/test_asyncio | |
parent | dd18001c308fb3bb65006c91d95f6639583a3420 (diff) | |
download | cpython-8c0be6fd9101746235b63ddfb84106d1e9ca286b.zip cpython-8c0be6fd9101746235b63ddfb84106d1e9ca286b.tar.gz cpython-8c0be6fd9101746235b63ddfb84106d1e9ca286b.tar.bz2 |
bpo-41687: Fix sendfile implementation to work with Solaris (#22040)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_sendfile.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_sendfile.py b/Lib/test/test_asyncio/test_sendfile.py index a30d9b9..01c6986 100644 --- a/Lib/test/test_asyncio/test_sendfile.py +++ b/Lib/test/test_asyncio/test_sendfile.py @@ -446,6 +446,12 @@ class SendfileMixin(SendfileBase): self.assertEqual(srv_proto.data, self.DATA) self.assertEqual(self.file.tell(), len(self.DATA)) + # On Solaris, lowering SO_RCVBUF on a TCP connection after it has been + # established has no effect. Due to its age, this bug affects both Oracle + # Solaris as well as all other OpenSolaris forks (unless they fixed it + # themselves). + @unittest.skipIf(sys.platform.startswith('sunos'), + "Doesn't work on Solaris") def test_sendfile_close_peer_in_the_middle_of_receiving(self): srv_proto, cli_proto = self.prepare_sendfile(close_after=1024) with self.assertRaises(ConnectionError): |