##// END OF EJS Templates
Always reset after `%run -i` in tests....
Always reset after `%run -i` in tests. Currently, `IPython/core/tests/run_tests.py` has a few tests that do `run -i`, which has side-effects on the IPython environment shared by all tests. In particular, setting `__file__` in the global namespace leads to traceback handling in `ultratb` getting confused, since it no longer knows which file to look in. This fixes existing uses of `run -i`, and adds a note reminding future travelers to be careful when adding new cases.

File last commit:

r23376:60805a7b
r23967:13328af1
Show More
magic-run-bug-fix.md
1 line | 122 B | text/x-minidsrc | MarkdownLexer
/ docs / source / whatsnew / pr / magic-run-bug-fix.md
Utkarsh Upadhyay
EHN: Add CHANGELOG entry....
r23376 Make ``%run -n -i ...`` work correctly. Earlier, if ``%run`` was passed both arguments, ``-n`` would be silently ignored.