diff options
Diffstat (limited to 'Lib/test/script_helper.py')
-rw-r--r-- | Lib/test/script_helper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/script_helper.py b/Lib/test/script_helper.py index 1b5b0bf315..337854af55 100644 --- a/Lib/test/script_helper.py +++ b/Lib/test/script_helper.py @@ -3,6 +3,7 @@ import sys import os +import re import os.path import tempfile import subprocess @@ -11,6 +12,8 @@ import contextlib import shutil import zipfile +from test.test_support import strip_python_stderr + # Executing the interpreter in a subprocess def _assert_python(expected_success, *args, **env_vars): cmd_line = [sys.executable] @@ -31,6 +34,7 @@ def _assert_python(expected_success, *args, **env_vars): p.stdout.close() p.stderr.close() rc = p.returncode + err = strip_python_stderr(err) if (rc and expected_success) or (not rc and not expected_success): raise AssertionError( "Process return code is %d, " |