summaryrefslogtreecommitdiff
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
parentdda8c852e7e968730c8fbccbf46b9121694194f1 (diff)
downloadnumpy-2f30016c6259a000b8acd9bde11eae06c593b658.tar.gz
Fixed language style
-rw-r--r--.travis.yml4
-rw-r--r--numpy/tests/test_public_api.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 85f6127cd..0deab2bc0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,8 +5,8 @@ group: travis_latest
os: linux
dist: bionic
-# Travis whitelists the installable packages, additions can be requested
-# https://github.com/travis-ci/apt-package-whitelist
+# Travis safelists the installable packages, additions can be requested
+# https://github.com/travis-ci/apt-package-safelist
addons:
apt:
packages: &common_packages
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'])