MCPcopy Index your code
hub / github.com/python/cpython / test_gh_98778

Method test_gh_98778

Lib/test/test_urllib2.py:1936–1940  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1934 err.close()
1935
1936 def test_gh_98778(self):
1937 x = urllib.error.HTTPError("url", 405, "METHOD NOT ALLOWED", None, None)
1938 self.assertEqual(getattr(x, "__notes__", ()), ())
1939 self.assertIsInstance(x.fp.read(), bytes)
1940 x.close()
1941
1942 def test_parse_proxy(self):
1943 parse_proxy_test_cases = [

Callers

nothing calls this directly

Calls 4

assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected