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.
os.devnul
1 parent 59b8ec3 commit 594413eCopy full SHA for 594413e
src/_pytest/capture.py
@@ -381,7 +381,7 @@ def __init__(self, targetfd: int) -> None:
381
self.targetfd_save = os.dup(targetfd)
382
383
if targetfd == 0:
384
- self.tmpfile = open(os.devnull)
+ self.tmpfile = open(os.devnull, encoding="utf-8")
385
self.syscapture = SysCapture(targetfd)
386
else:
387
self.tmpfile = EncodedFile(
0 commit comments