Lines Matching refs:path

331     # the possibly dotted module path (if any) and the exception message (if
390 # [XX] Normalize with respect to os.path.pardir?
397 # Normalize the path. On Windows, replace "/" with "\".
398 test_path = os.path.join(*(test_path.split('/')))
400 # Find the base directory for the path.
403 basedir = os.path.split(module.__file__)[0]
407 basedir = os.path.split(sys.argv[0])[0]
413 fullpath = os.path.join(directory, test_path)
414 if os.path.exists(fullpath):
422 # Combine the base directory and the test path.
423 return os.path.join(basedir, test_path)
916 # file is not a valid filesystem path
920 # filesystem path
1994 specifies a module-relative path. By default, this path is
1998 "/" characters to separate path segments, and should not
1999 be an absolute path (i.e., it may not begin with "/").
2002 os-specific path. The path may be absolute or relative (to
2069 # Relativize the path
2075 name = os.path.basename(filename)
2434 def DocFileTest(path, module_relative=True, package=None,
2446 # Relativize the path.
2447 doc, path = _load_testfile(path, package, module_relative,
2451 globs["__file__"] = path
2454 name = os.path.basename(path)
2457 test = parser.get_doctest(doc, globs, name, path, 0)
2463 The path to each doctest file is given as a string; the
2475 "filename" should use "/" characters to separate path
2476 segments, and may not be an absolute path (i.e., it may not
2524 for path in paths:
2525 suite.addTest(DocFileTest(path, **kw))
2794 # It is a module -- insert its dir into sys.path and try to
2797 dirname, filename = os.path.split(filename)
2798 sys.path.insert(0, dirname)
2800 del sys.path[0]