summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_casting_floatingpoint_errors.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/numpy/core/tests/test_casting_floatingpoint_errors.py b/numpy/core/tests/test_casting_floatingpoint_errors.py
index 87ebc194b..4fafc4ed8 100644
--- a/numpy/core/tests/test_casting_floatingpoint_errors.py
+++ b/numpy/core/tests/test_casting_floatingpoint_errors.py
@@ -64,16 +64,11 @@ def check_operations(dtype, value):
yield assignment
- # TODO: This constraint is a bug in arr.fill() and should be removed
- # e.g. by gh-20924. The type check works around the fact that
- # PyPy seems to create an "invalid" error itself, and we see it
- # due to gh-21416.
- if type(value) is int and value != 10**100:
- def fill():
- arr = np.empty(3, dtype=dtype)
- arr.fill(value)
-
- yield fill
+ def fill():
+ arr = np.empty(3, dtype=dtype)
+ arr.fill(value)
+
+ yield fill
def copyto_scalar():
arr = np.empty(3, dtype=dtype)