From 1e150204e0a3167c6d1980ce8e0cf663937f261a Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 28 Nov 2021 10:30:05 -0300 Subject: [PATCH] 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. --- testing/acceptance_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 82513a4..31d634b 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -790,7 +790,7 @@ class TestWarnings: 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")