Skip to content

Commit 092a1c5

Browse files
committed
Revert missing regrtest
1 parent 0d289d4 commit 092a1c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_regrtest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"""
66

77
import _colorize
8+
import contextlib
89
import dataclasses
910
import glob
11+
import io
1012
import locale
1113
import os.path
1214
import platform
@@ -364,7 +366,7 @@ def test_threshold(self):
364366
def test_nowindows(self):
365367
for opt in '-n', '--nowindows':
366368
with self.subTest(opt=opt):
367-
with support.captured_stderr() as stderr:
369+
with contextlib.redirect_stderr(io.StringIO()) as stderr:
368370
ns = self.parse_args([opt])
369371
self.assertTrue(ns.nowindows)
370372
err = stderr.getvalue()

0 commit comments

Comments
 (0)