Skip to content

Commit

Permalink
Remove some unnecessary lines in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jobh committed Jul 11, 2024
1 parent 7fcecd2 commit 2a0e48d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hypothesis-python/tests/cover/test_flakiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.

import warnings

import pytest

from hypothesis import HealthCheck, Verbosity, assume, example, given, reject, settings
Expand Down Expand Up @@ -65,9 +63,7 @@ def test(x):
pass

with pytest.raises(Flaky, match="failed on the first run now succeeds") as e:
with warnings.catch_warnings():
warnings.simplefilter("error")
test()
test()
assert isinstance(e.value.__context__, ZeroDivisionError)


Expand Down

0 comments on commit 2a0e48d

Please sign in to comment.