Skip to content

Commit f93e021

Browse files
committed
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).
1 parent 7a70428 commit f93e021

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

testing/test_capture.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,11 +1255,8 @@ def test_capsys_results_accessible_by_attribute(capsys):
12551255
assert capture_result.err == "eggs"
12561256

12571257

1258-
@pytest.mark.parametrize("use", [True, False])
1259-
def test_fdcapture_tmpfile_remains_the_same(tmpfile, use):
1260-
if not use:
1261-
tmpfile = True
1262-
cap = StdCaptureFD(out=False, err=tmpfile)
1258+
def test_fdcapture_tmpfile_remains_the_same() -> None:
1259+
cap = StdCaptureFD(out=False, err=True)
12631260
try:
12641261
cap.start_capturing()
12651262
capfile = cap.err.tmpfile

0 commit comments

Comments
 (0)