Merge pull request #732 from nicoddemus/fix-warning-captured-test

This commit is contained in:
Bruno Oliveira
2021-11-28 11:15:04 -03:00
committed by GitHub

View File

@@ -790,7 +790,7 @@ class TestWarnings:
warnings.warn("my custom worker warning") warnings.warn("my custom worker warning")
""" """
) )
result = pytester.runpytest("-n1") result = pytester.runpytest("-n1", "-Wignore")
result.stdout.fnmatch_lines(["*1 passed*"]) result.stdout.fnmatch_lines(["*1 passed*"])
result.stdout.no_fnmatch_line("*this hook should not be called in this version") result.stdout.no_fnmatch_line("*this hook should not be called in this version")