def test_doctest_mode():
    'Toggle doctest_mode twice, it should be a no-op and run without error'
    _ip.magic('doctest_mode')
    _ip.magic('doctest_mode')
Toggle doctest_mode twice, it should be a no-op and run without error
def test_doctest_mode():
    
    _ip.magic('doctest_mode')
    _ip.magic('doctest_mode')