diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-06-29 07:08:45 -0700 |
|---|---|---|
| committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-12 10:41:40 +0200 |
| commit | 0a0f96fe86cea5009730def695c27b5a334bd6c1 (patch) | |
| tree | 39dc3aeece9760ed36e118cbe1f42676df6f0b3f /numpy | |
| parent | d894650a624234bd1bc7fb20d74a58b44715622c (diff) | |
| download | numpy-0a0f96fe86cea5009730def695c27b5a334bd6c1.tar.gz | |
TST: Fix int overflow test for windows platforms where message differs
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_nep50_promotions.py | 3 |
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 |
