(self, tmp_path)
| 96 | fh.close() |
| 97 | |
| 98 | def test_InvalidHTTP(self, tmp_path): |
| 99 | ds = datasource.DataSource(tmp_path) |
| 100 | url = invalid_httpurl() |
| 101 | assert_raises(OSError, ds.open, url) |
| 102 | try: |
| 103 | ds.open(url) |
| 104 | except OSError as e: |
| 105 | # Regression test for bug fixed in r4342. |
| 106 | assert_(e.errno is None) |
| 107 | |
| 108 | def test_InvalidHTTPCacheURLError(self, tmp_path): |
| 109 | ds = datasource.DataSource(tmp_path) |
nothing calls this directly
no test coverage detected