capture: remove some unclear parametrization from a test

The two cases end up doing the same (the tmpfile fixture isn't used
except being truthy).
This commit is contained in:
Ran Benita 2020-05-27 13:04:56 +03:00
parent 7a704288df
commit f93e021bc8
1 changed files with 2 additions and 5 deletions

View File

@ -1255,11 +1255,8 @@ def test_capsys_results_accessible_by_attribute(capsys):
assert capture_result.err == "eggs"
@pytest.mark.parametrize("use", [True, False])
def test_fdcapture_tmpfile_remains_the_same(tmpfile, use):
if not use:
tmpfile = True
cap = StdCaptureFD(out=False, err=tmpfile)
def test_fdcapture_tmpfile_remains_the_same() -> None:
cap = StdCaptureFD(out=False, err=True)
try:
cap.start_capturing()
capfile = cap.err.tmpfile