Merge pull request #1405 from takluyver/xunit-monkeypatch-on-request

Only monkeypatch xunit when the tests are run using it.

Sidesteps weird issues seen on Ubuntu buildbots.
pull/37/head
Min RK 14 years ago
commit 7e4a76fb96

@ -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…
Cancel
Save