Skip to content

Commit 8f03248

Browse files
sebergngoldbaum
andauthored
Apply suggestions from code review
Co-authored-by: Nathan Goldbaum <[email protected]>
1 parent 9ced09e commit 8f03248

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

numpy/_core/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def test_copyto_cast_safety():
428428
# As a special thing, object is equiv currently:
429429
np.copyto(np.arange(3, dtype=object), 3, casting="equiv")
430430

431-
# The following raises an overflow error/givs a warning but not
431+
# The following raises an overflow error/gives a warning but not
432432
# type error (due to casting), though:
433433
with pytest.raises(OverflowError):
434434
np.copyto(np.arange(3), 2**80, casting="safe")

numpy/_core/tests/test_ufunc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ def call_ufunc(arr, **kwargs):
620620
def test_cast_safety_scalar(self, ufunc):
621621
# We test add and equal, because equal has special scalar handling
622622
# Note that the "equiv" casting behavior should maybe be considered
623-
# a current implementation.
623+
# a current implementation detail.
624624
with pytest.raises(TypeError):
625-
# The loop picked is integral, which is not safe
625+
# this picks an integer loop, which is not safe
626626
ufunc(3., 4., dtype=int, casting="safe")
627627

628628
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)