mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)
This commit is contained in:
parent
1c83135381
commit
db2b6a20cd
8 changed files with 88 additions and 27 deletions
|
@ -18,7 +18,7 @@ AUDIT_TESTS_PY = support.findfile("audit-tests.py")
|
|||
class AuditTest(unittest.TestCase):
|
||||
def do_test(self, *args):
|
||||
with subprocess.Popen(
|
||||
[sys.executable, "-X utf8", AUDIT_TESTS_PY, *args],
|
||||
[sys.executable, "-Xutf8", AUDIT_TESTS_PY, *args],
|
||||
encoding="utf-8",
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
|
@ -32,7 +32,7 @@ class AuditTest(unittest.TestCase):
|
|||
def run_python(self, *args):
|
||||
events = []
|
||||
with subprocess.Popen(
|
||||
[sys.executable, "-X utf8", AUDIT_TESTS_PY, *args],
|
||||
[sys.executable, "-Xutf8", AUDIT_TESTS_PY, *args],
|
||||
encoding="utf-8",
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue