mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" (GH-94745)
(cherry picked from commit aa37ffda29
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
db13c0c1b8
commit
147a9a8be7
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