summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-08-08 19:11:47 -0500
committerGitHub <noreply@github.com>2022-08-08 19:11:47 -0500
commita642e1f0437571be82966069484dd359732c852b (patch)
tree9e346c9feaa7ff1abdabf666e4f29a198963a660 /numpy
parent74a042a2e52228bd571b2ff924f121255d65423b (diff)
parent79410aab355573b9765434126a0e74162e995776 (diff)
downloadnumpy-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.py5
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")