Skip to content

Commit

Permalink
Fix test_warning_captured_deprecated_in_pytest_6
Browse files Browse the repository at this point in the history
This test started to fail in the 'py38-pytestmain' environment, the
cause being PytestRemovedIn7Warning being raised by the conftest file
of the test itself. Ignoring it is fine, the purpose of the test is to ensure
the hook is not called by pytest-xdist.
  • Loading branch information
nicoddemus committed Nov 28, 2021
1 parent e2a9381 commit 1e15020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/acceptance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def test():
warnings.warn("my custom worker warning")
"""
)
result = pytester.runpytest("-n1")
result = pytester.runpytest("-n1", "-Wignore")
result.stdout.fnmatch_lines(["*1 passed*"])
result.stdout.no_fnmatch_line("*this hook should not be called in this version")

Expand Down

0 comments on commit 1e15020

Please sign in to comment.