MCPcopy Create free account
hub / github.com/numpy/numpy / test_InvalidHTTP

Method test_InvalidHTTP

numpy/lib/tests/test__datasource.py:103–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 fh.close()
102
103 def test_InvalidHTTP(self):
104 url = invalid_httpurl()
105 assert_raises(OSError, self.ds.open, url)
106 try:
107 self.ds.open(url)
108 except OSError as e:
109 # Regression test for bug fixed in r4342.
110 assert_(e.errno is None)
111
112 def test_InvalidHTTPCacheURLError(self):
113 assert_raises(URLError, self.ds._cache, invalid_httpurl())

Callers

nothing calls this directly

Calls 4

assert_raisesFunction · 0.90
assert_Function · 0.90
invalid_httpurlFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected