mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Only monkeypatch xunit when the tests are run using it.
This commit is contained in:
parent
c926a2872c
commit
7d849a2f70
@ -407,7 +407,7 @@ def run_iptest():
|
||||
and accepts all of the standard nose arguments.
|
||||
"""
|
||||
# Apply our monkeypatch to Xunit
|
||||
if not hasattr(Xunit, 'orig_addError'):
|
||||
if '--with-xunit' in sys.argv and not hasattr(Xunit, 'orig_addError'):
|
||||
monkeypatch_xunit()
|
||||
|
||||
warnings.filterwarnings('ignore',
|
||||
|
Loading…
Reference in New Issue
Block a user