| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -470,8 +470,11 @@ def test_sendfile_close_peer_in_the_middle_of_receiving(self): | |||
| 470 | 470 | ||
| 471 | 471 | self.assertTrue(1024 <= srv_proto.nbytes < len(self.DATA), | |
| 472 | 472 | srv_proto.nbytes) | |
| 473 | - self.assertTrue(1024 <= self.file.tell() < len(self.DATA), | ||
| 474 | - self.file.tell()) | ||
| 473 | + if not (sys.platform == 'win32' | ||
| 474 | + 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()) | ||
| 475 | 478 | self.assertTrue(cli_proto.transport.is_closing()) | |
| 476 | 479 | ||
| 477 | 480 | def test_sendfile_fallback_close_peer_in_the_middle_of_receiving(self): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments