From 42f6b37be6171243fb110da58ca3bacb0dafeefc Mon Sep 17 00:00:00 2001 From: Andrew Pikul Date: Sat, 5 Oct 2024 01:16:25 -0400 Subject: [PATCH] Remove unnecessary debug lines from test --- testing/test_capture.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/test_capture.py b/testing/test_capture.py index 38d381a551..b136d5f060 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -450,8 +450,6 @@ def test_capteesys(self, pytester: Pytester) -> None: """\ from io import StringIO import sys - sys.stdout = stdout = StringIO() - sys.stderr = stderr = StringIO() def test_one(capteesys): print("sTdoUt") print("sTdeRr", file=sys.stderr) @@ -464,7 +462,7 @@ def test_one(capteesys): # as opposed to both being reported on stdout result = pytester.runpytest(p, "--quiet", "--quiet", "-rN", "--capture=tee-sys") assert result.ret == ExitCode.OK - result.stdout.fnmatch_lines(["*sTdoUt*"]) + result.stdout.fnmatch_lines(["sTdoUt"]) result.stderr.fnmatch_lines(["sTdeRr"]) def test_capsyscapfd(self, pytester: Pytester) -> None: