60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | |
def test_import_autoconfigure__nofile(self): |
-> p = self.initdir2 / 'autoconfiguretest.py' |
oldsysarg = sys.argv |
sys.argv = [str(p)] |
oldsyspath = sys.path[:] |
try: |
d = {} |
exec self.getauto in d |
conf = d['autopath'] |
assert conf.dirpath() == self.initdir2 |
assert conf.pkgdir == self.initdir |
syspath = sys.path[:] |
assert str(self.root) in syspath |
finally: |
sys.path[:] = oldsyspath |
sys.argv = sys.argv | |