diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2022-08-08 19:11:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-08 19:11:47 -0500 |
| commit | a642e1f0437571be82966069484dd359732c852b (patch) | |
| tree | 9e346c9feaa7ff1abdabf666e4f29a198963a660 /numpy | |
| parent | 74a042a2e52228bd571b2ff924f121255d65423b (diff) | |
| parent | 79410aab355573b9765434126a0e74162e995776 (diff) | |
| download | numpy-a642e1f0437571be82966069484dd359732c852b.tar.gz | |
Merge pull request #22099 from gpshead/gh9968-test-cleanup
TST: Remove workaround for gh-9968 from `test_scalar_methods.test_roundtrip`
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_scalar_methods.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/tests/test_scalar_methods.py b/numpy/core/tests/test_scalar_methods.py index eef4c1433..82a67d018 100644 --- a/numpy/core/tests/test_scalar_methods.py +++ b/numpy/core/tests/test_scalar_methods.py @@ -97,9 +97,8 @@ class TestAsIntegerRatio: n, d = f.as_integer_ratio() try: - # workaround for gh-9968 - nf = np.longdouble(str(n)) - df = np.longdouble(str(d)) + nf = np.longdouble(n) + df = np.longdouble(d) except (OverflowError, RuntimeWarning): # the values may not fit in any float type pytest.skip("longdouble too small on this platform") |
