Skip to content

Commit

Permalink
MAINT: Minor include fixup in scalarmath after rebase and comment fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
seberg committed Oct 12, 2022
1 parent d9da02d commit ee3c20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion numpy/core/src/umath/scalarmath.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 2 additions & 1 deletion numpy/core/tests/test_nep50_promotions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee3c20b

Please sign in to comment.