summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-06-13 09:38:09 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-13 09:38:09 -0700
commita546ee19523f9b97db985afa8d161af0dee1fafa (patch)
tree5a871cae52ddc8e454a86d1f299bef44b66d0849
parent7e6d8ef3be68265540b04130dd26ef6dfdf741e1 (diff)
downloadnumpy-a546ee19523f9b97db985afa8d161af0dee1fafa.tar.gz
TST: Remove FPE `fill` special case after rebase
-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)