make know failures report as 'K'

ported from numpy.testing.noseclasses, with the equivalent code
extracted into _numpy_testing_noseclasses in case numpy is not
installed.

removed some unused imports throughout
This commit is contained in:
Paul Ivanov 2011-04-03 17:49:40 -07:00
parent 097fddbadd
commit b7a088db6b

View File

@ -53,6 +53,7 @@ from IPython.utils.sysinfo import sys_info
from IPython.testing import globalipapp
from IPython.testing.plugin.ipdoctest import IPythonDoctest
from IPython.external.decorators import KnownFailure
pjoin = path.join
@ -357,7 +358,7 @@ def run_iptest():
# Construct list of plugins, omitting the existing doctest plugin, which
# ours replaces (and extends).
plugins = [IPythonDoctest(make_exclude())]
plugins = [IPythonDoctest(make_exclude()), KnownFailure()]
for p in nose.plugins.builtin.plugins:
plug = p()
if plug.name == 'doctest':