From 7155decd1fb0ad1685344a78c875922496743528 Mon Sep 17 00:00:00 2001 From: Dean Li Date: Sun, 4 Apr 2021 20:30:44 +0800 Subject: [PATCH] Add os in detect requires environment script --- Lib/test/support/script_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support/script_helper.py b/Lib/test/support/script_helper.py index 83519988e..ace08406f 100644 --- a/Lib/test/support/script_helper.py +++ b/Lib/test/support/script_helper.py @@ -44,7 +44,7 @@ def interpreter_requires_environment(): # Try running an interpreter with -E to see if it works or not. try: subprocess.check_call([sys.executable, '-E', - '-c', 'import sys; sys.exit(0)']) + '-c', 'import os, sys; sys.exit(0)']) except subprocess.CalledProcessError: __cached_interp_requires_environment = True else: