Make sure importing ipdoctest does NOT start an ipython instance

Bug #409096 reported by Fernando Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Fix Committed
Critical
Fernando Perez

Bug Description

Currently, ipdoctest has a special function called start_ipython() that starts an ipython instance globally. This is called unconditionally upon import of ipdoctest, and it is done this way because I was never able to debug exactly why if I tried to defer this call until later, the test suite had problems.

But ultimately this is a very nasty side effect, and indeed this global ipython was masking issues with other code because it would not show hidden dependencies on a running ipython.

For 0.10 we'll leave it as-is, but after the reorganization this needs to be cleaned up for 0.11.

Related branches

Revision history for this message
Fernando Perez (fdo.perez) wrote :

Fix in my trunk-dev branch.

Changed in ipython:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.