From: Paul Brossier Date: Thu, 1 Nov 2018 23:21:14 +0000 (+0100) Subject: [tests] update _tools X-Git-Tag: 0.4.9~71^2~34 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=01d56c19a04180430d8edf2b738e34bb11c8ae93;p=aubio.git [tests] update _tools --- diff --git a/python/tests/_tools.py b/python/tests/_tools.py index 271575d3..f858c706 100644 --- a/python/tests/_tools.py +++ b/python/tests/_tools.py @@ -21,18 +21,16 @@ if 'nose2' in sys.modules: assert_warns = such.helper.assertWarns skipTest = such.helper.skipTest _has_nose2 = True - print ('using nose2') # otherwise, check if we have pytest if not _has_nose2: try: import pytest parametrize = pytest.mark.parametrize - _has_pytest = True assert_raises = pytest.raises assert_warns = pytest.warns skipTest = pytest.skip - print ('using pytest') + _has_pytest = True except: pass @@ -43,7 +41,6 @@ if not _has_pytest and not _has_nose2: parametrize = dec.parametrize def skipTest(msg): raise SkipTest(msg) - print ('using numpy') # always use numpy's assert_equal import numpy