Skip to content

test_launcher fails if no Python is installed #121090

Open
@encukou

Description

If no Python is installed on a system, test_launcher fails with:

======================================================================
FAIL: test_shebang_command_in_venv (test.test_launcher.TestLauncher.test_shebang_command_in_venv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\encukou\dev\cpython\Lib\test\test_launcher.py", line 765, in test_shebang_command_in_venv
    data = self.run_py([script], env=env)
  File "C:\Users\encukou\dev\cpython\Lib\test\test_launcher.py", line 254, in run_py
    self.assertEqual(expect_returncode, p.returncode)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 != 103

There's now a Buildbot that happens to have this config, see e.g. here

Linked PRs

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions