MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_gh_98778

Method test_gh_98778

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

Source from the content-addressed store, hash-verified

1917 err.close()
1918
1919 def test_gh_98778(self):
1920 x = urllib.error.HTTPError("url", 405, "METHOD NOT ALLOWED", None, None)
1921 self.assertEqual(getattr(x, "__notes__", ()), ())
1922 self.assertIsInstance(x.fp.read(), bytes)
1923 x.close()
1924
1925 def test_parse_proxy(self):
1926 parse_proxy_test_cases = [

Callers

nothing calls this directly

Calls 5

getattrFunction · 0.85
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected