Skip to content

Commit 24c71a6

Browse files
committed
Linter update
1 parent db51d15 commit 24c71a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hypothesis-python/tests/numpy/test_floor_ceil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ def test_our_floor_and_ceil_avoid_numpy_rounding(value):
4141
f = floor(a)
4242
c = ceil(a)
4343

44-
assert type(f) == int
45-
assert type(c) == int
44+
# Check *exact* type - we don't want to allow a subclass of int here
45+
assert type(f) == int # noqa
46+
assert type(c) == int # noqa
4647

4748
# Using math.floor or math.ceil for these values would give an incorrect result.
4849
with warnings.catch_warnings():

0 commit comments

Comments
 (0)