summaryrefslogtreecommitdiff
path: root/numpy/tests/test_public_api.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-08-13 09:54:33 -0600
committerCharles Harris <charlesr.harris@gmail.com>2021-08-16 10:43:46 -0600
commitdfc25f5e7b3fc0c29a80c907e1588dbc6384a7b9 (patch)
treeb159237758107ed521510539baea0eca9867185c /numpy/tests/test_public_api.py
parent9a176d0f9e758ccc825669515970f5d7d8d3393a (diff)
downloadnumpy-dfc25f5e7b3fc0c29a80c907e1588dbc6384a7b9.tar.gz
MAINT: Cleanup code after dropping Python 3.7.
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r--numpy/tests/test_public_api.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py
index 3fa2edd8f..ad04f5cec 100644
--- a/numpy/tests/test_public_api.py
+++ b/numpy/tests/test_public_api.py
@@ -52,22 +52,8 @@ def test_numpy_namespace():
'show_config': 'numpy.__config__.show',
'who': 'numpy.lib.utils.who',
}
- if sys.version_info < (3, 7):
- # These built-in types are re-exported by numpy.
- builtins = {
- 'bool': 'builtins.bool',
- 'complex': 'builtins.complex',
- 'float': 'builtins.float',
- 'int': 'builtins.int',
- 'long': 'builtins.int',
- 'object': 'builtins.object',
- 'str': 'builtins.str',
- 'unicode': 'builtins.str',
- }
- allowlist = dict(undocumented, **builtins)
- else:
- # after 3.7, we override dir to not show these members
- allowlist = undocumented
+ # We override dir to not show these members
+ allowlist = undocumented
bad_results = check_dir(np)
# pytest gives better error messages with the builtin assert than with
# assert_equal