Home | History | Annotate | Download | only in test

Lines Matching refs:pth_file

84     def pth_file_tests(self, pth_file):
86 self.assertIn(pth_file.imported, sys.modules,
87 "%s not in sys.modules" % pth_file.imported)
88 self.assertIn(site.makepath(pth_file.good_dir_path)[0], sys.path)
89 self.assertFalse(os.path.exists(pth_file.bad_dir_path))
96 pth_file = PthFile()
97 pth_file.cleanup(prep=True) # to make sure that nothing is
100 pth_file.create()
101 site.addpackage(pth_file.base_dir, pth_file.filename, set())
102 self.pth_file_tests(pth_file)
104 pth_file.cleanup()
111 pth_file = open(pth_fn, 'w', encoding='utf-8')
113 pth_file.write(contents)
114 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()