Skip to content

iOS testbed can't access app or app_packages code in subinterpreters #162115

Open

Description

@mhsmith

Bug report

For details see:

The iOS testbed adds the app and app_packages directories to sys.path using code in TestbedTests.m, which isn't executed again when creating a subinterpreter. So by default, subinterpreters can't access anything except the Python standard library.

It shouldn't be necessary for every package to provide its own workaround for this. Could we fix it in the testbed, either by using the standard site-packages location, or by putting a .pth file in that location which adds the other locations?

CPython versions tested on:

3.14

Operating systems tested on:

Other

Linked PRs

Activity

  1. freakboy3742 commented on Nov 18, 2026

    @freakboy3742
    Contributor

    This can definitely be fixed in the testbed - and I think it might be possible to radically simplify the testbed in the process. Patch incoming shortly.

  2. added
    3.14bugs and security fixes
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    on Nov 18, 2026
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.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesOS-iostype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions