You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS testbed does not correctly handle test arguments with spaces #141442
The arguments are then written into a test plan, and used to start the test suite.
The testbed runner correctly parses the command line arguments, and writes them into the test plan. However, even though Xcode's xctestplan format is a JSON document, and arguments are specified as an array, and arg 3 in the previous example is passed as a single quoted value in that array, Xcode itself does a raw concatenation of the array content. This means that any argument that contains a space is interpreted at runtime as multiple arguments.
This problem was introduced as part of #138018; that change introduced the use of the xctestplan, but it wasn't until I tried to run NumPy's test suite (which needs a pytest -m 'not slow' configuration) that the problem became apparent.
Activity
freakboy3742 commentedon Nov 12, 2025
This problem was introduced as part of #138018; that change introduced the use of the xctestplan, but it wasn't until I tried to run NumPy's test suite (which needs a
pytest -m 'not slow'configuration) that the problem became apparent.gh-141442: Add escaping to iOS testbed arguments (#141443)
pythongh-141442: Add escaping to iOS testbed arguments (pythonGH-141443)
pythongh-141442: Add escaping to iOS testbed arguments (pythonGH-141443)
[3.13] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#…
[3.14] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#…
Merge branch 'main' into fix-issue21914
Merge branch 'main' of github.com:python/cpython into fix-Issue18387
Merge branch 'main' of github.com:python/cpython into fix-issue24255
pythongh-141442: Add escaping to iOS testbed arguments (python#141443)
[3.10] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…
[3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…