History

[tests] update _tools

Paul Brossier committed 8 years ago

Commit 01d56c11 parent bee94451 file · +1 −4Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/_tools.py+1−4
@@ -21,18 +21,16 @@ if 'nose2' in sys.modules: · 20 unmodified lines
2121 assert_warns = such.helper.assertWarns
2222 skipTest = such.helper.skipTest
2323 _has_nose2 = True
24− print ('using nose2')
2524
2625 # otherwise, check if we have pytest
2726 if not _has_nose2:
2827 try:
2928 import pytest
3029 parametrize = pytest.mark.parametrize
31− _has_pytest = True
3230 assert_raises = pytest.raises
3331 assert_warns = pytest.warns
3432 skipTest = pytest.skip
35− print ('using pytest')
33+ _has_pytest = True
3634 except:
3735 pass
3836
@@ -43,7 +41,6 @@ if not _has_pytest and not _has_nose2: · 4 unmodified lines
4341 parametrize = dec.parametrize
4442 def skipTest(msg):
4543 raise SkipTest(msg)
46− print ('using numpy')
4744
4845 # always use numpy's assert_equal
4946 import numpy

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t