Lines Matching refs:pth_file
82 def pth_file_tests(self, pth_file):
84 self.assertIn(pth_file.imported, sys.modules,
85 "%s not in sys.modules" % pth_file.imported)
86 self.assertIn(site.makepath(pth_file.good_dir_path)[0], sys.path)
87 self.assertFalse(os.path.exists(pth_file.bad_dir_path))
94 pth_file = PthFile()
95 pth_file.cleanup(prep=True) # to make sure that nothing is
98 pth_file.create()
99 site.addpackage(pth_file.base_dir, pth_file.filename, set())
100 self.pth_file_tests(pth_file)
102 pth_file.cleanup()
109 pth_file = open(pth_fn, 'w')
111 pth_file.write(contents)
112 pth_file.close()
159 pth_file = PthFile()
160 pth_file.cleanup(prep=True) # Make sure that nothing is pre-existing
163 pth_file.create()
164 site.addsitedir(pth_file.base_dir, set())
165 self.pth_file_tests(pth_file)
167 pth_file.cleanup()