From 911015e445f94340ab41900c4d96f81569978f6f Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Wed, 1 Jun 2022 13:06:27 -0700 Subject: 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. --- numpy/lib/tests/test_arraysetops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_arraysetops.py') 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])) -- cgit v1.2.1