summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/cmdline.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 12:08:18 (GMT)
committerGitHub <noreply@github.com>2021-10-13 12:08:18 (GMT)
commit773330773968f211c77abc7b5b525faa7b3c35a2 (patch)
tree227525b1ec3989adde6ab6e630b5e4f87471d5a1 /Lib/test/libregrtest/cmdline.py
parent380c44087505d0d560f97e325028f27393551164 (diff)
downloadcpython-773330773968f211c77abc7b5b525faa7b3c35a2.zip
cpython-773330773968f211c77abc7b5b525faa7b3c35a2.tar.gz
cpython-773330773968f211c77abc7b5b525faa7b3c35a2.tar.bz2
bpo-45410: regrtest -W leaves stdout/err FD unchanged (GH-28915)
support.print_warning() now stores the original value of sys.__stderr__ and uses it to log warnings. libregrtest uses the same stream to log unraisable exceptions and uncaught threading exceptions. Partially revert commit dbe213de7ef28712bbfdb9d94a33abb9c33ef0c2: libregrtest no longer replaces sys.__stdout__, sys.__stderr__, and stdout and stderr file descriptors. Remove also a few unused imports in libregrtest.
Diffstat (limited to 'Lib/test/libregrtest/cmdline.py')
-rw-r--r--Lib/test/libregrtest/cmdline.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py
index 29f4ede..6e6ff12 100644
--- a/Lib/test/libregrtest/cmdline.py
+++ b/Lib/test/libregrtest/cmdline.py
@@ -1,7 +1,6 @@
import argparse
import os
import sys
-from test import support
from test.support import os_helper