Skip to content

test_remote_exec fails on Android with PermissionError #133006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vstinner opened this issue Apr 26, 2025 · 2 comments
Closed

test_remote_exec fails on Android with PermissionError #133006

vstinner opened this issue Apr 26, 2025 · 2 comments
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Apr 26, 2025

Example: https://buildbot.python.org/#/builders/1591/builds/1914

ERROR: test_breakpoints (test.test_remote_pdb.PdbConnectTestCase.test_breakpoints)
Test setting and hitting breakpoints.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_remote_pdb.py", line 431, in test_breakpoints
    process, client_file = self._connect_and_get_client_file()
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_remote_pdb.py", line 324, in _connect_and_get_client_file
    process = subprocess.Popen(
        [sys.executable, self.script_path],
    ...<2 lines>...
        text=True
    )
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/subprocess.py", line 1038, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/org.python.testbed/files/python/lib/python3.14/subprocess.py", line 1967, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ''

cc @pablogsal @gaogaotiantian

Linked PRs

@gaogaotiantian
Copy link
Member

gaogaotiantian commented Apr 26, 2025

As the other tests that use subprocess, we need to check if it's available for tests. Fix in #133014 .

@picnixz picnixz added type-bug An unexpected behavior, bug, or error 3.14 new features, bugs and security fixes labels Apr 26, 2025
@vstinner
Copy link
Member Author

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants