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

Method test_RFC2732_invalid

Lib/test/test_urlparse.py:774–777  ·  view source on GitHub ↗
(self, bytes, invalid_url)

Source from the content-addressed store, hash-verified

772 'http://[::1/foo/bad]/bad',
773 'http://[::ffff:12.34.56.78'])
774 def test_RFC2732_invalid(self, bytes, invalid_url):
775 if bytes:
776 invalid_url = str_encode(invalid_url)
777 self.assertRaises(ValueError, urllib.parse.urlparse, invalid_url)
778
779 @support.subTests('bytes', (False, True))
780 @support.subTests('url,defrag,frag', [

Callers

nothing calls this directly

Calls 2

str_encodeFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected