Skip to content

Commit 1e15020

Browse files
committed
Fix test_warning_captured_deprecated_in_pytest_6
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.
1 parent e2a9381 commit 1e15020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/acceptance_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def test():
790790
warnings.warn("my custom worker warning")
791791
"""
792792
)
793-
result = pytester.runpytest("-n1")
793+
result = pytester.runpytest("-n1", "-Wignore")
794794
result.stdout.fnmatch_lines(["*1 passed*"])
795795
result.stdout.no_fnmatch_line("*this hook should not be called in this version")
796796

0 commit comments

Comments
 (0)