Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_venv.py::unmodified

== PyPy 3.12.13 (8ba7ab03fab8, Jul 08 2026, 04:20:17) [PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_274261æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1583727452
0:00:00 load avg: 0.73 Run 1 test sequentially in a single process
0:00:00 load avg: 0.73 [1/1] test_venv
test_activate_shell_script_has_no_dos_newlines (test.test_venv.BasicTest.test_activate_shell_script_has_no_dos_newlines)
Test that the `activate` shell script contains no CR LF. ... ok
test_config_file_command_key (test.test_venv.BasicTest.test_config_file_command_key) ... ok
test_deactivate_with_strict_bash_opts (test.test_venv.BasicTest.test_deactivate_with_strict_bash_opts) ... ok
test_defaults_with_pathlike (test.test_venv.BasicTest.test_defaults_with_pathlike)
Test the create function with default arguments and a path-like path. ... FAIL
test_defaults_with_str_path (test.test_venv.BasicTest.test_defaults_with_str_path)
Test the create function with default arguments and a str path. ... FAIL
test_executable (test.test_venv.BasicTest.test_executable)
Test that the sys.executable value is as expected. ... /tmp/pytest/tmpohq928po/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

ERROR
test_executable_symlinks (test.test_venv.BasicTest.test_executable_symlinks)
Test that the sys.executable value is as expected. ... ok
test_isolation (test.test_venv.BasicTest.test_isolation)
Test isolation from system site-packages ... ok
test_macos_env (test.test_venv.BasicTest.test_macos_env) ... skipped 'only relevant on macOS'
test_multiprocessing (test.test_venv.BasicTest.test_multiprocessing)
Test that the multiprocessing is able to spawn. ... /tmp/pytest/tmptfc601y9/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

ERROR
test_multiprocessing_recursion (test.test_venv.BasicTest.test_multiprocessing_recursion)
Test that the multiprocessing is able to spawn itself ... ERROR
test_overwrite_existing (test.test_venv.BasicTest.test_overwrite_existing)
Test creating environment in an existing directory. ... ok
test_pathsep_error (test.test_venv.BasicTest.test_pathsep_error)
Test that venv creation fails when the target directory contains ... ok
test_prefixes (test.test_venv.BasicTest.test_prefixes)
Test that the prefix values are as expected. ... /tmp/pytest/tmp736agk1q/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

ERROR
test_prompt (test.test_venv.BasicTest.test_prompt) ... ok
test_special_chars_bash (test.test_venv.BasicTest.test_special_chars_bash)
Test that the template strings are quoted properly (bash) ... ERROR
test_special_chars_csh (test.test_venv.BasicTest.test_special_chars_csh)
Test that the template strings are quoted properly (csh) ... skipped 'csh required for this test'
test_special_chars_windows (test.test_venv.BasicTest.test_special_chars_windows)
Test that the template strings are quoted properly on Windows ... skipped 'only relevant on Windows'
test_symlinking (test.test_venv.BasicTest.test_symlinking)
Test symlinking works as expected ... ok
test_sysconfig (test.test_venv.BasicTest.test_sysconfig)
Test that the sysconfig functions work in a virtual environment. ... /tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory


  test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_preferred_scheme("prefix")]
Test that the sysconfig functions work in a virtual environment. ... ERROR
/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

  test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_default_scheme()]
Test that the sysconfig functions work in a virtual environment. ... ERROR
/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

  test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [is_python_build()]
Test that the sysconfig functions work in a virtual environment. ... ERROR
/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

  test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_makefile_filename()]
Test that the sysconfig functions work in a virtual environment. ... ERROR
/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

  test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_config_h_filename()]
Test that the sysconfig functions work in a virtual environment. ... ERROR
test_sysconfig_symlinks (test.test_venv.BasicTest.test_sysconfig_symlinks)
Test that the sysconfig functions work in a virtual environment. ... ok
test_unicode_in_batch_file (test.test_venv.BasicTest.test_unicode_in_batch_file)
Test handling of Unicode paths ... skipped 'only relevant on Windows'
test_unoverwritable_fails (test.test_venv.BasicTest.test_unoverwritable_fails) ... ok
test_upgrade (test.test_venv.BasicTest.test_upgrade)
Test upgrading an existing environment directory. ... FAIL
test_upgrade_dependencies (test.test_venv.BasicTest.test_upgrade_dependencies) ... ok
test_venv_same_path (test.test_venv.BasicTest.test_venv_same_path) ... ok
test_zippath_from_non_installed_posix (test.test_venv.BasicTest.test_zippath_from_non_installed_posix)
Test that when create venv from non-installed python, the zip path ... ERROR
test_devnull (test.test_venv.EnsurePipTest.test_devnull) ... ok
test_explicit_no_pip (test.test_venv.EnsurePipTest.test_explicit_no_pip) ... /tmp/pytest/tmp9rxwkn0j/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

ERROR
test_no_pip_by_default (test.test_venv.EnsurePipTest.test_no_pip_by_default) ... /tmp/pytest/tmpdua3bx_b/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory

ERROR
test_with_pip (test.test_venv.EnsurePipTest.test_with_pip) ... skipped "resource 'cpu' is not enabled"

======================================================================
ERROR: test_executable (test.test_venv.BasicTest.test_executable)
Test that the sys.executable value is as expected.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 433, in test_executable
    out, err = check_output([envpy, '-c',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpohq928po/bin/pypy3.12-c', '-c', 'import sys; print(sys.executable)']' returned non-zero exit status 127.

======================================================================
ERROR: test_multiprocessing (test.test_venv.BasicTest.test_multiprocessing)
Test that the multiprocessing is able to spawn.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 558, in test_multiprocessing
    out, err = check_output([envpy, '-c',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmptfc601y9/bin/pypy3.12-c', '-c', 'from multiprocessing import Pool; pool = Pool(1); print(pool.apply_async("Python".lower).get(3)); pool.terminate()']' returned non-zero exit status 127.

======================================================================
ERROR: test_multiprocessing_recursion (test.test_venv.BasicTest.test_multiprocessing_recursion)
Test that the multiprocessing is able to spawn itself
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 577, in test_multiprocessing_recursion
    subprocess.check_call([envpy, "-I", script])
               ^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/pytest/tmp3byeu1ny/bin/pypy3.12-c', '-I', '/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/_test_venv_multiprocessing.py']' returned non-zero exit status 127.

======================================================================
ERROR: test_prefixes (test.test_venv.BasicTest.test_prefixes)
Test that the prefix values are as expected.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 257, in test_prefixes
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmp736agk1q/bin/pypy3.12-c', '-c', 'import sys; print(sys.prefix)']' returned non-zero exit status 127.

======================================================================
ERROR: test_special_chars_bash (test.test_venv.BasicTest.test_special_chars_bash)
Test that the template strings are quoted properly (bash)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 474, in test_special_chars_bash
    self.assertTrue(env_name.encode() in lines[0])
                                         ~~~~~^^^
IndexError: list index out of range

======================================================================
ERROR: test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_preferred_scheme("prefix")]
Test that the sysconfig functions work in a virtual environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 280, in test_sysconfig
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c', '-c', 'import sysconfig; print(sysconfig.get_preferred_scheme("prefix"))']' returned non-zero exit status 127.

======================================================================
ERROR: test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_default_scheme()]
Test that the sysconfig functions work in a virtual environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 280, in test_sysconfig
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c', '-c', 'import sysconfig; print(sysconfig.get_default_scheme())']' returned non-zero exit status 127.

======================================================================
ERROR: test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [is_python_build()]
Test that the sysconfig functions work in a virtual environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 280, in test_sysconfig
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c', '-c', 'import sysconfig; print(sysconfig.is_python_build())']' returned non-zero exit status 127.

======================================================================
ERROR: test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_makefile_filename()]
Test that the sysconfig functions work in a virtual environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 280, in test_sysconfig
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c', '-c', 'import sysconfig; print(sysconfig.get_makefile_filename())']' returned non-zero exit status 127.

======================================================================
ERROR: test_sysconfig (test.test_venv.BasicTest.test_sysconfig) [get_config_h_filename()]
Test that the sysconfig functions work in a virtual environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 280, in test_sysconfig
    out, err = check_output(cmd)
               ^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpfxe3tvt5/bin/pypy3.12-c', '-c', 'import sysconfig; print(sysconfig.get_config_h_filename())']' returned non-zero exit status 127.

======================================================================
ERROR: test_zippath_from_non_installed_posix (test.test_venv.BasicTest.test_zippath_from_non_installed_posix)
Test that when create venv from non-installed python, the zip path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 697, in test_zippath_from_non_installed_posix
    subprocess.check_call(cmd, env=child_env)
               ^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpaf7hrl14/bin/pypy3.12-c', '-m', 'venv', '--without-pip', '/tmp/pytest/tmpjajmxsba']' returned non-zero exit status 127.

======================================================================
ERROR: test_explicit_no_pip (test.test_venv.EnsurePipTest.test_explicit_no_pip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 775, in test_explicit_no_pip
    self.assert_pip_not_installed()
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 757, in assert_pip_not_installed
    out, err = check_output([envpy, '-c',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmp9rxwkn0j/bin/pypy3.12-c', '-c', 'try:\n import pip\nexcept ImportError:\n print("OK")']' returned non-zero exit status 127.

======================================================================
ERROR: test_no_pip_by_default (test.test_venv.EnsurePipTest.test_no_pip_by_default)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 770, in test_no_pip_by_default
    self.assert_pip_not_installed()
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 757, in assert_pip_not_installed
    out, err = check_output([envpy, '-c',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 58, in check_output
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['/tmp/pytest/tmpdua3bx_b/bin/pypy3.12-c', '-c', 'try:\n import pip\nexcept ImportError:\n print("OK")']' returned non-zero exit status 127.

======================================================================
FAIL: test_defaults_with_pathlike (test.test_venv.BasicTest.test_defaults_with_pathlike)
Test the create function with default arguments and a path-like path.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 123, in test_defaults_with_pathlike
    self._check_output_of_default_create()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 128, in _check_output_of_default_create
    self.isdir(*self.lib)
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 107, in isdir
    self.assertTrue(os.path.isdir(fn))
         ^^^^^^^^^^
AssertionError: False is not true

======================================================================
FAIL: test_defaults_with_str_path (test.test_venv.BasicTest.test_defaults_with_str_path)
Test the create function with default arguments and a str path.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 115, in test_defaults_with_str_path
    self._check_output_of_default_create()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 128, in _check_output_of_default_create
    self.isdir(*self.lib)
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 107, in isdir
    self.assertTrue(os.path.isdir(fn))
         ^^^^^^^^^^
AssertionError: False is not true

======================================================================
FAIL: test_upgrade (test.test_venv.BasicTest.test_upgrade)
Test upgrading an existing environment directory.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 381, in test_upgrade
    self.isdir(*self.lib)
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_venv.py", line 107, in isdir
    self.assertTrue(os.path.isdir(fn))
         ^^^^^^^^^^
AssertionError: False is not true

----------------------------------------------------------------------
Ran 31 tests in 0.951s

FAILED (failures=3, errors=13, skipped=5)
0:00:01 load avg: 0.73 [1/1/1] test_venv failed (13 errors, 3 failures)

== Tests result: FAILURE ==

1 test failed:
    test_venv

Total duration: 1.1 sec
Total tests: run=31 failures=3 skipped=5
Total test files: run=1/1 failed=1
Result: FAILURE
/tmp/pytest/tmp3byeu1ny/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory
/tmp/pytest/tmpaf7hrl14/bin/pypy3.12-c: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory
test test_venv failed
builder: pypy-c-jit-linux-x86-64 build #11852+
test: lib-python/3/test/test_venv.py::unmodified