Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -21,18 +21,16 @@ if 'nose2' in sys.modules: · 20 unmodified lines | ||
| 21 | 21 | assert_warns = such.helper.assertWarns |
| 22 | 22 | skipTest = such.helper.skipTest |
| 23 | 23 | _has_nose2 = True |
| 24 | − print ('using nose2') | |
| 25 | 24 | |
| 26 | 25 | # otherwise, check if we have pytest |
| 27 | 26 | if not _has_nose2: |
| 28 | 27 | try: |
| 29 | 28 | import pytest |
| 30 | 29 | parametrize = pytest.mark.parametrize |
| 31 | − _has_pytest = True | |
| 32 | 30 | assert_raises = pytest.raises |
| 33 | 31 | assert_warns = pytest.warns |
| 34 | 32 | skipTest = pytest.skip |
| 35 | − print ('using pytest') | |
| 33 | + _has_pytest = True | |
| 36 | 34 | except: |
| 37 | 35 | pass |
| 38 | 36 | |
| @@ -43,7 +41,6 @@ if not _has_pytest and not _has_nose2: · 4 unmodified lines | ||
| 43 | 41 | parametrize = dec.parametrize |
| 44 | 42 | def skipTest(msg): |
| 45 | 43 | raise SkipTest(msg) |
| 46 | − print ('using numpy') | |
| 47 | 44 | |
| 48 | 45 | # always use numpy's assert_equal |
| 49 | 46 | import numpy |