##// 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:

r21337:03608cd1
r23967:13328af1
Show More
__main__.py
3 lines | 100 B | text/x-python | PythonLexer
MinRK
add `python -m` entry points for everything
r14009 if __name__ == '__main__':
Min RK
ipython_kernel is now ipykernel
r21337 from ipykernel import kernelapp as app
MinRK
add `python -m` entry points for everything
r14009 app.launch_new_instance()