GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — iOS testbed does not correctly handle test arguments with spaces · Issue #141442 · python/cpython

iOS testbed does not correctly handle test arguments with spaces #141442

New issue
Copy link
New issue
Copy link
Closed
Closed
iOS testbed does not correctly handle test arguments with spaces#141442
Copy link
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesOS-iostype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@freakboy3742
freakboy3742
opened on Nov 12, 2025
Issue body actions

Bug report

Bug description:

The iOS testbed can be given arguments to pass to the test suite - for example:

$ python Apple/testbed clone myproject
$ python myproject run -- test arg1 arg2 'arg 3' arg4

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.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

  • gh-141442: Add escaping to iOS testbed arguments #141443
  • [3.14] gh-141442: Add escaping to iOS testbed arguments (GH-141443) #141479
  • [3.13] gh-141442: Add escaping to iOS testbed arguments (GH-141443) #141480

Activity

  1. freakboy3742
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.13only security fixesonly security fixes
    OS-ios
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    on Nov 12, 2025
  2. freakboy3742 commented on Nov 12, 2025

    @freakboy3742
    freakboy3742
    on Nov 12, 2025
    ContributorAuthor
    More actions

    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.

  3. freakboy3742
    added a commit that references this issue on Nov 12, 2025

    gh-141442: Add escaping to iOS testbed arguments (#141443)

    558936b
  4. miss-islington
    added 2 commits that reference this issue on Nov 12, 2025

    pythongh-141442: Add escaping to iOS testbed arguments (pythonGH-141443)

    76e9e39

    pythongh-141442: Add escaping to iOS testbed arguments (pythonGH-141443)

    4258cd5
  5. freakboy3742
    added 2 commits that reference this issue on Nov 12, 2025

    [3.13] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#…

    6aeb0d5

    [3.14] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#…

    4316180
  6. freakboy3742
    closed this as completedon Nov 12, 2025
  7. CuriousLearner
    added 3 commits that reference this issue on Nov 13, 2025

    Merge branch 'main' into fix-issue21914

    b9f473c

    Merge branch 'main' of github.com:python/cpython into fix-Issue18387

    c46ecc5

    Merge branch 'main' of github.com:python/cpython into fix-issue24255

    c240289
  8. StanFromIreland
    added a commit that references this issue on Dec 6, 2025

    pythongh-141442: Add escaping to iOS testbed arguments (python#141443)

    fc81776
  9. freakboy3742
    added 4 commits that reference this issue on Feb 3, 2026

    [3.10] pythongh-141442: Add escaping to iOS testbed arguments (python…

    f1004a8

    [3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…

    d5ac8c0

    [3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…

    81e3f90

    [3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…

    d58977c
  10. freakboy3742
    added 3 commits that reference this issue on Jun 12, 2026

    [3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…

    bd91097

    [3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…

    2f6369c

    [3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…

    2e89a02
  11. freakboy3742
    added 3 commits that reference this issue on Oct 2, 2026

    [3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…

    a74ae09

    [3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…

    9002a2f

    [3.11] pythongh-141442: Add escaping to iOS testbed arguments (python…

    0632961
  12. freakboy3742
    added 2 commits that reference this issue on Oct 12, 2026

    [3.13] pythongh-141442: Add escaping to iOS testbed arguments (python…

    beb0797

    [3.12] pythongh-141442: Add escaping to iOS testbed arguments (python…

    3586500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesOS-iostype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.