##// END OF EJS Templates
Robustness fixes in test suite machinery....
Robustness fixes in test suite machinery. Added a module-level INSTALLED flag, which can be set to false if the test suite is being run in-place (without ipython having been installed at all). This is because how we call and import things must be done differently depending on whether the code is installed or is being run in-place. The only ones that can know this reliably are the entry-point scripts, so those are responsible for setting this flag. Also made the code that validates ipython in subprocesses report errors better, by checking stderr for errors before validating stdout output, as anything on stderr will be likely informative of the real problem.

File last commit:

r2271:62858c7c
r2494:c8938204
Show More
test_imports.py
62 lines | 1.3 KiB | text/x-python | PythonLexer
Brian Granger
completer.py => core/completer.py and imports updated.
r2012 #!/usr/bin/env python
# encoding: utf-8
def test_import_completer():
from IPython.core import completer
Brian Granger
CrashHandler.py => core/crashhandler.py and updated all imports.
r2014 def test_import_crashhandler():
from IPython.core import crashhandler
Brian Granger
Debugger.py => core/debugger.py and updated all imports.
r2015
def test_import_debugger():
Brian Granger
FakeModule.py => core/fakemodule.py and updated tests and imports.
r2020 from IPython.core import debugger
def test_import_fakemodule():
from IPython.core import fakemodule
Brian Granger
excolors.py => core/excolors.py and updated import statements.
r2021 def test_import_excolors():
from IPython.core import excolors
Brian Granger
hooks.py => core/hooks.py and updated imports.
r2026 def test_import_history():
from IPython.core import history
def test_import_hooks():
from IPython.core import hooks
Brian Granger
ipapi.py => core/ipapi.py and imports updated.
r2027 def test_import_ipapi():
from IPython.core import ipapi
Brian Granger
Logger.py => core/logger.py and updated imports.
r2032 def test_import_iplib():
Brian Granger
iplib.py => core/iplib.py and updated tests and imports.
r2028 from IPython.core import iplib
Brian Granger
Logger.py => core/logger.py and updated imports.
r2032 def test_import_logger():
from IPython.core import logger
Brian Granger
macro.py => core/macro.py and upated imports.
r2033 def test_import_macro():
from IPython.core import macro
Brian Granger
hooks.py => core/hooks.py and updated imports.
r2026
Brian Granger
Magic.py => core/magic.py and imports updated.
r2036 def test_import_magic():
from IPython.core import magic
Brian Granger
hooks.py => core/hooks.py and updated imports.
r2026
Brian Granger
OInspect.py => core/oinspect.py and imports updated.
r2037 def test_import_oinspect():
from IPython.core import oinspect
Brian Granger
OutputTrap.py => core/outputtrap.py and updated imports.
r2038 def test_import_outputtrap():
from IPython.core import outputtrap
Brian Granger
OInspect.py => core/oinspect.py and imports updated.
r2037
Brian Granger
Prompts.py => core/prompts.py and imports updated.
r2040 def test_import_prefilter():
from IPython.core import prefilter
def test_import_prompts():
from IPython.core import prompts
Brian Granger
Release.py => core/release.py and imports updated.
r2043
def test_import_release():
Brian Granger
shadowns.py => core/shadowns.py and updated imports.
r2045 from IPython.core import release
def test_import_shadowns():
from IPython.core import shadowns
Brian Granger
Shell.py => core/shell.py and imports updated.
r2046
Brian Granger
ultraTB.py => core/ultratb.py and imports updated.
r2048 def test_import_ultratb():
from IPython.core import ultratb
Brian Granger
usage.py => core/usage.py and imports updated.
r2050
def test_import_usage():
from IPython.core import usage