Home
last modified time | relevance | path

Searched refs:pth_dir (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_site.py121 def make_pth(self, contents, pth_dir='.', pth_name=TESTFN): argument
123 pth_dir = os.path.abspath(pth_dir)
125 pth_fn = os.path.join(pth_dir, pth_basename)
130 return pth_dir, pth_basename
134 pth_dir, pth_fn = self.make_pth("import bad)syntax\n")
136 site.addpackage(pth_dir, pth_fn, set())
139 re.escape(os.path.join(pth_dir, pth_fn)))
149 pth_dir, pth_fn = self.make_pth("randompath\nimport nosuchmodule\n")
151 site.addpackage(pth_dir, pth_fn, set())
154 re.escape(os.path.join(pth_dir, pth_fn)))
[all …]
/external/python/cpython3/Lib/test/
Dtest_site.py125 def make_pth(self, contents, pth_dir='.', pth_name=TESTFN): argument
127 pth_dir = os.path.abspath(pth_dir)
129 pth_fn = os.path.join(pth_dir, pth_basename)
133 return pth_dir, pth_basename
137 pth_dir, pth_fn = self.make_pth("import bad-syntax\n")
139 site.addpackage(pth_dir, pth_fn, set())
142 re.escape(os.path.join(pth_dir, pth_fn)))
152 pth_dir, pth_fn = self.make_pth("randompath\nimport nosuchmodule\n")
154 site.addpackage(pth_dir, pth_fn, set())
157 re.escape(os.path.join(pth_dir, pth_fn)))
[all …]