summaryrefslogtreecommitdiff
path: root/Lib/test/test_audit.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-07-31 16:33:56 +0100
committerGitHub <noreply@github.com>2022-07-31 16:33:56 +0100
commitaa37ffda29ac48fb2df5a7029ba2e626ecc45850 (patch)
tree748f6ebe2d1bcc3b34cf999b15c1618a9365597b /Lib/test/test_audit.py
parent50b2261bdac98303087287b24eef96abd45a82f9 (diff)
downloadcpython-git-aa37ffda29ac48fb2df5a7029ba2e626ecc45850.tar.gz
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" (#94745)
Diffstat (limited to 'Lib/test/test_audit.py')
-rw-r--r--Lib/test/test_audit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_audit.py b/Lib/test/test_audit.py
index a7ff038c09..18426f27a2 100644
--- a/Lib/test/test_audit.py
+++ b/Lib/test/test_audit.py
@@ -20,7 +20,7 @@ class AuditTest(unittest.TestCase):
@support.requires_subprocess()
def do_test(self, *args):
with subprocess.Popen(
- [sys.executable, "-Xutf8", AUDIT_TESTS_PY, *args],
+ [sys.executable, "-X utf8", AUDIT_TESTS_PY, *args],
encoding="utf-8",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -35,7 +35,7 @@ class AuditTest(unittest.TestCase):
def run_python(self, *args):
events = []
with subprocess.Popen(
- [sys.executable, "-Xutf8", AUDIT_TESTS_PY, *args],
+ [sys.executable, "-X utf8", AUDIT_TESTS_PY, *args],
encoding="utf-8",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,