summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-03-25 12:34:16 -0600
committerCharles Harris <charlesr.harris@gmail.com>2018-04-04 06:36:36 -0600
commit7e5a41de9fab731e27a761c01302a0a93e2d1070 (patch)
treedbd6265800ad401476bcde904e9bba86f6af2b85 /numpy/lib/tests/test_utils.py
parent359e53ef8e479eefac0e184d4d25af50c2779ce0 (diff)
downloadnumpy-7e5a41de9fab731e27a761c01302a0a93e2d1070.tar.gz
TST: Switch to using pytest markers
Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
Diffstat (limited to 'numpy/lib/tests/test_utils.py')
-rw-r--r--numpy/lib/tests/test_utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_utils.py b/numpy/lib/tests/test_utils.py
index 92bcdc238..7d8e7e68e 100644
--- a/numpy/lib/tests/test_utils.py
+++ b/numpy/lib/tests/test_utils.py
@@ -1,9 +1,11 @@
from __future__ import division, absolute_import, print_function
import sys
+import pytest
+
from numpy.core import arange
from numpy.testing import (
- run_module_suite, assert_, assert_equal, assert_raises_regex, dec
+ run_module_suite, assert_, assert_equal, assert_raises_regex
)
from numpy.lib import deprecate
import numpy.lib.utils as utils
@@ -14,7 +16,7 @@ else:
from StringIO import StringIO
-@dec.skipif(sys.flags.optimize == 2)
+@pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
def test_lookfor():
out = StringIO()
utils.lookfor('eigenvalue', module='numpy', output=out,