(self)
| 200 | pth_file.cleanup() |
| 201 | |
| 202 | def test_addsitedir_dotfile(self): |
| 203 | pth_file = PthFile('.dotfile') |
| 204 | pth_file.cleanup(prep=True) |
| 205 | try: |
| 206 | pth_file.create() |
| 207 | site.addsitedir(pth_file.base_dir, set()) |
| 208 | self.assertNotIn(site.makepath(pth_file.good_dir_path)[0], sys.path) |
| 209 | self.assertIn(pth_file.base_dir, sys.path) |
| 210 | finally: |
| 211 | pth_file.cleanup() |
| 212 | |
| 213 | @unittest.skipUnless(hasattr(os, 'chflags'), 'test needs os.chflags()') |
| 214 | def test_addsitedir_hidden_flags(self): |