magic/testing/test_autopath.py - line 39
| 28 |
| 29 |
| 30 |
| 31 |
| 32 |
| 33 |
| 34 |
| 35 |
| 36 |
| 37 |
| 38 |
| 39 |
| 40 |
| 41 |
| 42 | |
def test_import_autoconfigure__file__with_py_exts(self): |
for ext in '.pyc', '.pyo': |
testpath = self.initdir2 / ('autoconfiguretest' + ext) |
d = {'__file__' : str(testpath)} |
oldsyspath = sys.path[:] |
try: |
exec self.getauto in d |
conf = d['autopath'] |
assert conf == self.initdir2.join('autoconfiguretest.py') |
assert conf.pkgdir == self.initdir |
assert str(self.root) in sys.path |
-> exec self.getauto in d |
assert conf is not d['autopath'] |
finally: |
sys.path[:] = oldsyspath | |
path/svn/testing/<string> - line 1
|
|
-> could not get to source | |