summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCornelius Roemer <cornelius.roemer@gmail.com>2021-12-29 22:02:10 +0000
committerCornelius Roemer <cornelius.roemer@gmail.com>2021-12-29 22:02:10 +0000
commitbf9298f85a4b3d8948d6f8916ac40badc1209661 (patch)
tree58dc750fac624bb17da4a3f60eaa41da0afdc820
parent2cc1f92e9087c955599e87612fd1cd85389c2bdf (diff)
downloadnumpy-bf9298f85a4b3d8948d6f8916ac40badc1209661.tar.gz
MAINT: Refactor test to shorten line length
-rw-r--r--numpy/core/tests/test_scalarprint.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/tests/test_scalarprint.py b/numpy/core/tests/test_scalarprint.py
index b1d158ddc..4deb5a0a4 100644
--- a/numpy/core/tests/test_scalarprint.py
+++ b/numpy/core/tests/test_scalarprint.py
@@ -306,8 +306,7 @@ class TestRealScalars:
assert_equal(fpos(tp('1.2'), unique=False, precision=4, trim='-'),
"1.2" if tp != np.float16 else "1.2002")
assert_equal(fpos(tp('1.'), trim='-'), "1")
- assert_equal(fpos(tp('1.001'), unique=False, precision=1, trim='-'),
- "1")
+ assert_equal(fpos(tp('1.001'), precision=1, trim='-'), "1")
@pytest.mark.skipif(not platform.machine().startswith("ppc64"),
reason="only applies to ppc float128 values")