summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/umath/scalarmath.c.src1
-rw-r--r--numpy/core/tests/test_nep50_promotions.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/umath/scalarmath.c.src b/numpy/core/src/umath/scalarmath.c.src
index e359605d6..3936efbdf 100644
--- a/numpy/core/src/umath/scalarmath.c.src
+++ b/numpy/core/src/umath/scalarmath.c.src
@@ -33,7 +33,6 @@
#include "umathmodule.h"
#include "convert_datatype.h"
-#include "dtypemeta.h"
/* TODO: Used for some functions, should possibly move these to npy_math.h */
diff --git a/numpy/core/tests/test_nep50_promotions.py b/numpy/core/tests/test_nep50_promotions.py
index be6cf92a5..5d4917c94 100644
--- a/numpy/core/tests/test_nep50_promotions.py
+++ b/numpy/core/tests/test_nep50_promotions.py
@@ -33,7 +33,8 @@ def test_nep50_examples():
assert res.dtype == np.int64
with pytest.warns(UserWarning, match="result dtype changed"):
- # Note: Overflow would be nice, but does not warn with change warning
+ # Note: For "weak_and_warn" promotion state the overflow warning is
+ # unfortunately not given (because we use the full array path).
with np.errstate(over="raise"):
res = np.uint8(100) + 200
assert res.dtype == np.uint8