diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-04 20:31:30 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-04 20:32:16 +0200 |
commit | cd0b8e7031fa16a60b22b74f1b0273ca60d58668 (patch) | |
tree | bb77058d1b81dfb705dfaf7117d8cbbfed4d5b87 /numpy/lib/tests/test_function_base.py | |
parent | 58350f4608a22f4b4b66795f51eaefc206bd02b8 (diff) | |
parent | 43ca904f79ced66552ff02e7e92da1c4566beadd (diff) | |
download | numpy-cd0b8e7031fa16a60b22b74f1b0273ca60d58668.tar.gz |
Merge pull request #5149 from charris/fix-ma-docs-for-OO-option
BUG: Make numpy import when run with Python flag '-OO
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 624b5f3eb..c800f8347 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1,12 +1,14 @@ from __future__ import division, absolute_import, print_function import warnings +import sys import numpy as np from numpy.testing import ( run_module_suite, TestCase, assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, - assert_allclose, assert_array_max_ulp, assert_warns, assert_raises_regex + assert_allclose, assert_array_max_ulp, assert_warns, + assert_raises_regex, dec ) from numpy.random import rand from numpy.lib import * @@ -2119,6 +2121,8 @@ class TestAdd_newdoc_ufunc(TestCase): class TestAdd_newdoc(TestCase): + + @dec.skipif(sys.flags.optimize == 2) def test_add_doc(self): # test np.add_newdoc tgt = "Current flat index into the array." |