Skip to content

Commit

Permalink
Remove workaround for gh-9968 from test_roundtrip.
Browse files Browse the repository at this point in the history
#9968 was fixed. workaround no
longer appropriate.

Also inefficient once #22098 is
implemented.
  • Loading branch information
gpshead committed Aug 8, 2022
1 parent 74a042a commit 79410aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions numpy/core/tests/test_scalar_methods.py
Expand Up @@ -97,9 +97,8 @@ def test_roundtrip(self, ftype, frac_vals, exp_vals):
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")
Expand Down

0 comments on commit 79410aa

Please sign in to comment.