Index: Lib/test/test_urlparse.py =================================================================== --- Lib/test/test_urlparse.py (revisiĆ³n: 64443) +++ Lib/test/test_urlparse.py (copia de trabajo) @@ -321,6 +321,11 @@ self.assertEqual(urlparse.urlparse("http://example.com?blahblah=/foo"), ('http', 'example.com', '', '', 'blahblah=/foo', '')) + def test_no_scheme(self): + # Issue 754016: urlparse('1.2.3.4:80','http') is legal + self.assertEqual(urlparse.urlparse('1.2.3.4:80','http'), + ('http', '1.2.3.4:80', '', '', '', '')) + def test_main(): test_support.run_unittest(UrlParseTestCase)