Lines Matching refs:path
61 fname = os.path.abspath(urllib.request.__file__).replace(os.sep, '/')
74 ('path"o,l"og"i"cal, example', ['path"o,l"og"i"cal', 'example']),
157 # For the same realm, password set the highest path is the winner.
201 # For the same path, newer password should be considered.
705 def sanepathname2url(path):
707 path.encode("utf-8")
709 raise unittest.SkipTest("path is not encodable to utf8")
710 urlpath = urllib.request.pathname2url(path)
789 urlpath = sanepathname2url(os.path.abspath(TESTFN))
1117 # Issue4493: urllib2 to supply '/' when to urls where path does not
1311 # Issue 14132: Relative redirect strips original path
1320 urls = iter(("/path", "/path?query"))
1327 fp = urllib.request.urlopen("http://python.org/path")
1328 self.assertEqual(fp.geturl(), "http://python.org/path?query")
1349 (b'/spaced%20path/', b'/spaced%20path/'),
1350 (b'/spaced path/', b'/spaced%20path/'),