Fix test_fixture_teardown_failure for pytest master

`--debug` now receives an optional file, so the way the test
was calling pytest made it seem like it was passing the python file
file as the debug file.
This commit is contained in:
Bruno Oliveira
2021-09-01 07:54:13 -03:00
parent 5e0b40cea2
commit 90fc616906

View File

@@ -568,7 +568,7 @@ def test_fixture_teardown_failure(testdir):
pass
"""
)
result = testdir.runpytest_subprocess("--debug", p) # , "-n1")
result = testdir.runpytest_subprocess(p, "-n1")
result.stdout.fnmatch_lines(["*ValueError*42*", "*1 passed*1 error*"])
assert result.ret