diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-11-14 09:02:50 -0800 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-11-14 09:02:50 -0800 |
commit | a0833836e07aeabde98eb3cfa1a583b3dd4a9439 (patch) | |
tree | 550f5e863214d926f2cf507fddb8de91a113eca4 /numpy/tests/test_public_api.py | |
parent | de8cf0af77aa68593a50e5463d464fbf12c65c01 (diff) | |
download | numpy-a0833836e07aeabde98eb3cfa1a583b3dd4a9439.tar.gz |
MAINT: fix tests on Python 2
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r-- | numpy/tests/test_public_api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index d1222f489..856cca8eb 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -1,6 +1,9 @@ from __future__ import division, absolute_import, print_function +import sys + import numpy as np +import pytest def check_dir(module, module_name=None): @@ -16,6 +19,9 @@ def check_dir(module, module_name=None): return results +@pytest.mark.skipif( + sys.version_info[0] < 3, + reason="NumPy exposes slightly different functions on Python 2") def test_numpy_namespace(): # None of these objects are publicly documented. undocumented = { |