(self)
| 468 | self.unfakehttp() |
| 469 | |
| 470 | def test_empty_socket(self): |
| 471 | # urlopen() raises OSError if the underlying socket does not send any |
| 472 | # data. (#1680230) |
| 473 | self.fakehttp(b'') |
| 474 | try: |
| 475 | self.assertRaises(OSError, urllib.request.urlopen, "http://something") |
| 476 | finally: |
| 477 | self.unfakehttp() |
| 478 | |
| 479 | def test_missing_localfile(self): |
| 480 | # Test for #10836 |
nothing calls this directly
no test coverage detected