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 0d289d4 commit 092a1c5Copy full SHA for 092a1c5
Lib/test/test_regrtest.py
@@ -5,8 +5,10 @@
5
"""
6
7
import _colorize
8
+import contextlib
9
import dataclasses
10
import glob
11
+import io
12
import locale
13
import os.path
14
import platform
@@ -364,7 +366,7 @@ def test_threshold(self):
364
366
def test_nowindows(self):
365
367
for opt in '-n', '--nowindows':
368
with self.subTest(opt=opt):
- with support.captured_stderr() as stderr:
369
+ with contextlib.redirect_stderr(io.StringIO()) as stderr:
370
ns = self.parse_args([opt])
371
self.assertTrue(ns.nowindows)
372
err = stderr.getvalue()
0 commit comments