| 67 |
| 68 |
| 69 |
| 70 |
| 71 |
| 72 |
| 73 |
| 74 |
| 75 |
| 76 |
| 77 | |
def test_importing_goes_wrong(): |
tmp = py.test.ensuretemp("sourcebrowserimport") |
tmp.ensure("x.py").write(py.code.Source(""" |
import aslkdjaslkdjasdl |
""")) |
mod = parse_path(tmp.join("x.py")) |
|
tmp.ensure("y.py").write(py.code.Source(""" |
raise KeyboardInterrupt |
-> """)) |
py.test.raises(KeyboardInterrupt, 'parse_path(tmp.join("y.py"))') | |