diff options
author | Matteo Raso <matteo_luigi_raso@protonmail.com> | 2023-04-01 21:51:59 -0400 |
---|---|---|
committer | Matteo Raso <matteo_luigi_raso@protonmail.com> | 2023-04-01 21:51:59 -0400 |
commit | cf07cd7c715d42913c4d92d0a8bef128fd2e8367 (patch) | |
tree | da31a2b6eb7401f734699040107da7cb41496ddf /numpy/lib/tests | |
parent | d25018b84c2844a5eda2b3ab34ed7723bf71daba (diff) | |
download | numpy-cf07cd7c715d42913c4d92d0a8bef128fd2e8367.tar.gz |
Fixed docstring test
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 6f4449c68..df0c4a003 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1805,7 +1805,8 @@ class TestVectorize: """Docstring""" return x - assert f.__doc__ == "Docstring" + if sys.flags.optimize < 2: + assert f.__doc__ == "Docstring" def test_partial(self): def foo(x, y): |