summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorabel <aoun@cerfacs.fr>2021-10-22 13:35:40 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2021-11-04 14:50:27 -0500
commita8218af306e7639f2136c8e915a5b9ea1f34356a (patch)
treef79e4298079b1b331c98899f89570b3135fe845a /numpy/lib/tests/test_function_base.py
parentf48e40636879d0f33c0cda8f76db06335043344b (diff)
downloadnumpy-a8218af306e7639f2136c8e915a5b9ea1f34356a.tar.gz
TST: Make use of clongdouble and longdouble
On some platforms float128 and complex256 do not exist. Using (c)longdouble aliases should work on all platforms.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 22228405a..d5fa012f1 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -2919,10 +2919,10 @@ class TestPercentile:
] + [(np.float16, np.float64),
(np.float32, np.float64),
(np.float64, np.float64),
- (np.float128, np.float128),
+ (np.longdouble, np.longdouble),
(np.complex64, np.complex128),
(np.complex128, np.complex128),
- (np.complex256, np.complex256),
+ (np.clongdouble, np.clongdouble),
(np.dtype("O"), np.float64)]
@pytest.mark.parametrize(["input_dtype", "expected_dtype"], H_F_TYPE_CODES)