summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_nep50_promotions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_nep50_promotions.py b/numpy/core/tests/test_nep50_promotions.py
index 0c0755e66..8129c8b46 100644
--- a/numpy/core/tests/test_nep50_promotions.py
+++ b/numpy/core/tests/test_nep50_promotions.py
@@ -86,5 +86,6 @@ def test_nep50_integer_conversion_errors():
with pytest.raises(OverflowError, match=".*uint8"):
np.uint8(1) + 300
- with pytest.raises(OverflowError, match=".*unsigned int"):
+ # Error message depends on platform (maybe unsigned int or unsigned long)
+ with pytest.raises(OverflowError, match=".*unsigned"):
np.uint8(1) + -1