Skip to content

Commit 8ba634a

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 eac2014 commit 8ba634a

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
@@ -1265,11 +1265,8 @@ def test_capsys_results_accessible_by_attribute(capsys):
12651265
assert capture_result.err == "eggs"
12661266

12671267

1268-
@pytest.mark.parametrize("use", [True, False])
1269-
def test_fdcapture_tmpfile_remains_the_same(tmpfile, use):
1270-
if not use:
1271-
tmpfile = True
1272-
cap = StdCaptureFDBinary(out=False, err=tmpfile)
1268+
def test_fdcapture_tmpfile_remains_the_same() -> None:
1269+
cap = StdCaptureFDBinary(out=False, err=True)
12731270
try:
12741271
cap.start_capturing()
12751272
capfile = cap.err.tmpfile

0 commit comments

Comments
 (0)