We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3319a6 commit d0f3f26Copy full SHA for d0f3f26
testing/test_capture.py
@@ -134,12 +134,22 @@ def test_unicode():
134
def test_collect_capturing(testdir):
135
p = testdir.makepyfile(
136
"""
137
+ import sys
138
+
139
print("collect %s failure" % 13)
140
+ sys.stderr.write("collect %s_stderr failure" % 13)
141
import xyz42123
142
143
)
144
result = testdir.runpytest(p)
- result.stdout.fnmatch_lines(["*Captured stdout*", "*collect 13 failure*"])
145
+ result.stdout.fnmatch_lines(
146
+ [
147
+ "*Captured stdout*",
148
+ "collect 13 failure",
149
+ "*Captured stderr*",
150
+ "collect 13_stderr failure",
151
+ ]
152
+ )
153
154
155
class TestPerTestCapturing(object):
0 commit comments