mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" (#94745)
This commit is contained in:
parent
50b2261bda
commit
aa37ffda29
6 changed files with 27 additions and 83 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue