MCPcopy Index your code
hub / github.com/python/cpython / test_addsitedir_dotfile

Method test_addsitedir_dotfile

Lib/test/test_site.py:202–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 6

cleanupMethod · 0.95
createMethod · 0.95
PthFileClass · 0.85
setFunction · 0.85
assertNotInMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected