Skip to content

Commit 769d02f

Browse files
committed
Ignore PytestAssertRewriteWarning for hypothesis
1 parent 93d804a commit 769d02f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ filterwarnings = [
458458
"error::ResourceWarning",
459459
"error::pytest.PytestUnraisableExceptionWarning",
460460
"error::pytest.PytestWarning",
461+
# e.g. Module already imported so cannot be rewritten; _hypothesis_globals
462+
"ignore::pytest.PytestAssertRewriteWarning",
461463
# TODO(PY311-minimum): Specify EncodingWarning
462464
# Ignore 3rd party EncodingWarning but raise on pandas'
463465
"ignore:.*encoding.* argument not specified",

0 commit comments

Comments
 (0)