summaryrefslogtreecommitdiff
path: root/numpy/tests/test_public_api.py
diff options
context:
space:
mode:
authorErfan Nariman | Veneficus <erfan.nariman@veneficus.nl>2020-06-23 15:27:19 +0200
committerErfan Nariman | Veneficus <erfan.nariman@veneficus.nl>2020-06-23 15:27:19 +0200
commit2f30016c6259a000b8acd9bde11eae06c593b658 (patch)
tree0d2f2ce66abfad966ad23bf77ebe0a6674d71585 /numpy/tests/test_public_api.py
parentdda8c852e7e968730c8fbccbf46b9121694194f1 (diff)
downloadnumpy-2f30016c6259a000b8acd9bde11eae06c593b658.tar.gz
Fixed language style
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r--numpy/tests/test_public_api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py
index cc4c5d8c5..a9d6da01c 100644
--- a/numpy/tests/test_public_api.py
+++ b/numpy/tests/test_public_api.py
@@ -66,14 +66,14 @@ def test_numpy_namespace():
'str': 'builtins.str',
'unicode': 'builtins.str',
}
- whitelist = dict(undocumented, **builtins)
+ allowlist = dict(undocumented, **builtins)
else:
# after 3.7, we override dir to not show these members
- whitelist = undocumented
+ allowlist = undocumented
bad_results = check_dir(np)
# pytest gives better error messages with the builtin assert than with
# assert_equal
- assert bad_results == whitelist
+ assert bad_results == allowlist
@pytest.mark.parametrize('name', ['testing', 'Tester'])