8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ab5e5 commit fa35b9eCopy full SHA for fa35b9e
Lib/test/test_asyncio/test_sendfile.py
@@ -470,8 +470,11 @@ def test_sendfile_close_peer_in_the_middle_of_receiving(self):
470
471
self.assertTrue(1024 <= srv_proto.nbytes < len(self.DATA),
472
srv_proto.nbytes)
473
- self.assertTrue(1024 <= self.file.tell() < len(self.DATA),
474
- self.file.tell())
+ if not (sys.platform == 'win32'
+ and isinstance(self.loop, asyncio.ProactorEventLoop)):
475
+ # On Windows, Proactor uses transmitFile, which does not update tell()
476
+ self.assertTrue(1024 <= self.file.tell() < len(self.DATA),
477
+ self.file.tell())
478
self.assertTrue(cli_proto.transport.is_closing())
479
480
def test_sendfile_fallback_close_peer_in_the_middle_of_receiving(self):
0 commit comments