Skip to content

Commit

Permalink
Remove unnecessary debug lines from test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Oct 5, 2024
1 parent f043372 commit 42f6b37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testing/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 42f6b37

Please sign in to comment.