Permalink
Browse files

Only monkeypatch xunit when the tests are run using it.

  • Loading branch information...
1 parent 8096bb8 commit dedc34d817d87cdb68bf0ce349ce636e1022da76 @takluyver committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/testing/iptest.py
@@ -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',

0 comments on commit dedc34d

Please sign in to comment.