summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_arraysetops.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-06-01 13:06:27 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-01 13:29:09 -0700
commit911015e445f94340ab41900c4d96f81569978f6f (patch)
tree73b51d6f29b71ac8c7ca5c69b90d7fa546af91dc /numpy/lib/tests/test_arraysetops.py
parent6cada27f1744d004a6d8ca7731c9a6d5dfed9b3a (diff)
downloadnumpy-911015e445f94340ab41900c4d96f81569978f6f.tar.gz
MAINT: Fixup `unique`s `equal_nan` kwarg to match `np.array_equal`
The other similar arguments in the testing functions and `np.array_equal` use `equal_nan` and not `equal_nans` (with plural s). So it seems we should use that here as well for consistency. Does some very minor style fixes otherwise.
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
-rw-r--r--numpy/lib/tests/test_arraysetops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
index f97fea310..e64634b69 100644
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -770,6 +770,6 @@ class TestUnique:
# issue 20326
a = np.array([1, 1, np.nan, np.nan, np.nan])
unq = np.unique(a)
- not_unq = np.unique(a, equal_nans = False)
+ not_unq = np.unique(a, equal_nan=False)
assert_array_equal(unq, np.array([1, np.nan]))
assert_array_equal(not_unq, np.array([1, np.nan, np.nan, np.nan]))