mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
- Make ipdoctest a little cleaner by giving it separate option names.
This is in an attempt at better isolating it from the rest of nose, because we are seeing intermittent Twisted errors when it is enabled. However, I still see them sometimes. - Also, make the reference counting tests a little less verbose.
This commit is contained in:
parent
828afc90ca
commit
75873476f5
@ -61,7 +61,7 @@ def main():
|
|||||||
# plugin needs to be gone through with a fine
|
# plugin needs to be gone through with a fine
|
||||||
# toothed comb to find what is causing the problem.
|
# toothed comb to find what is causing the problem.
|
||||||
# '--with-ipdoctest',
|
# '--with-ipdoctest',
|
||||||
'--doctest-tests','--doctest-extension=txt',
|
'--ipdoctest-tests','--ipdoctest-extension=txt',
|
||||||
'--detailed-errors',
|
'--detailed-errors',
|
||||||
|
|
||||||
# We add --exe because of setuptools' imbecility (it
|
# We add --exe because of setuptools' imbecility (it
|
||||||
@ -81,11 +81,13 @@ def main():
|
|||||||
(':' in arg and '.py' in arg):
|
(':' in arg and '.py' in arg):
|
||||||
has_tests = True
|
has_tests = True
|
||||||
break
|
break
|
||||||
|
|
||||||
# If nothing was specifically requested, test full IPython
|
# If nothing was specifically requested, test full IPython
|
||||||
if not has_tests:
|
if not has_tests:
|
||||||
argv.append('IPython')
|
argv.append('IPython')
|
||||||
|
|
||||||
# Construct list of plugins, omitting the existing doctest plugin.
|
# Construct list of plugins, omitting the existing doctest plugin, which
|
||||||
|
# ours replaces (and extends).
|
||||||
plugins = [IPythonDoctest(EXCLUDE)]
|
plugins = [IPythonDoctest(EXCLUDE)]
|
||||||
for p in nose.plugins.builtin.plugins:
|
for p in nose.plugins.builtin.plugins:
|
||||||
plug = p()
|
plug = p()
|
||||||
|
Loading…
Reference in New Issue
Block a user