diff options
author | Cornelius Roemer <cornelius.roemer@gmail.com> | 2021-12-29 22:02:10 +0000 |
---|---|---|
committer | Cornelius Roemer <cornelius.roemer@gmail.com> | 2021-12-29 22:02:10 +0000 |
commit | bf9298f85a4b3d8948d6f8916ac40badc1209661 (patch) | |
tree | 58dc750fac624bb17da4a3f60eaa41da0afdc820 | |
parent | 2cc1f92e9087c955599e87612fd1cd85389c2bdf (diff) | |
download | numpy-bf9298f85a4b3d8948d6f8916ac40badc1209661.tar.gz |
MAINT: Refactor test to shorten line length
-rw-r--r-- | numpy/core/tests/test_scalarprint.py | 3 |
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") |