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

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

== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 07:59:28) [PyPy 8.0.0-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-x86_64-i386-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-x86_64/pytest/test_python_worker_64001æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 4294433212
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 1.29 Run 1 test sequentially in a single process
0:00:00 load avg: 1.29 [1/1] test_site
test__getuserbase (test.test_site.HelperFunctionsTests.test__getuserbase) ... ok
test_addpackage (test.test_site.HelperFunctionsTests.test_addpackage) ... ok
test_addpackage_empty_lines (test.test_site.HelperFunctionsTests.test_addpackage_empty_lines) ... ok
test_addpackage_import_bad_exec (test.test_site.HelperFunctionsTests.test_addpackage_import_bad_exec) ... ok
test_addpackage_import_bad_pth_file (test.test_site.HelperFunctionsTests.test_addpackage_import_bad_pth_file) ... ok
test_addpackage_import_bad_syntax (test.test_site.HelperFunctionsTests.test_addpackage_import_bad_syntax) ... ok
test_addsitedir (test.test_site.HelperFunctionsTests.test_addsitedir) ... ok
test_addsitedir_dotfile (test.test_site.HelperFunctionsTests.test_addsitedir_dotfile) ... ok
test_addsitedir_hidden_file_attribute (test.test_site.HelperFunctionsTests.test_addsitedir_hidden_file_attribute) ... skipped 'test needs Windows'
test_addsitedir_hidden_flags (test.test_site.HelperFunctionsTests.test_addsitedir_hidden_flags) ... skipped 'test needs os.chflags()'
test_get_path (test.test_site.HelperFunctionsTests.test_get_path) ... ok
test_getsitepackages (test.test_site.HelperFunctionsTests.test_getsitepackages) ... FAIL
test_getuserbase (test.test_site.HelperFunctionsTests.test_getuserbase) ... ok
test_getusersitepackages (test.test_site.HelperFunctionsTests.test_getusersitepackages) ... ok
test_init_pathinfo (test.test_site.HelperFunctionsTests.test_init_pathinfo) ... ok
test_makepath (test.test_site.HelperFunctionsTests.test_makepath) ... ok
test_no_home_directory (test.test_site.HelperFunctionsTests.test_no_home_directory) ... ok
test_s_option (test.test_site.HelperFunctionsTests.test_s_option) ... ok
test_trace (test.test_site.HelperFunctionsTests.test_trace) ... ok
test_abs_paths_cached_None (test.test_site.ImportSideEffectTests.test_abs_paths_cached_None)
Test for __cached__ is None. ... ok
test_add_build_dir (test.test_site.ImportSideEffectTests.test_add_build_dir) ... skipped 'test not implemented'
test_license_exists_at_url (test.test_site.ImportSideEffectTests.test_license_exists_at_url) ... skipped 'need SSL support to download license'
test_no_duplicate_paths (test.test_site.ImportSideEffectTests.test_no_duplicate_paths) ... ok
test_setting_copyright (test.test_site.ImportSideEffectTests.test_setting_copyright) ... ok
test_setting_help (test.test_site.ImportSideEffectTests.test_setting_help) ... ok
test_setting_quit (test.test_site.ImportSideEffectTests.test_setting_quit) ... ok
test_sitecustomize_executed (test.test_site.ImportSideEffectTests.test_sitecustomize_executed) ... ok
test_startup_imports (test.test_site.StartupImportTests.test_startup_imports) ... ok
test_startup_interactivehook (test.test_site.StartupImportTests.test_startup_interactivehook) ... ok
test_startup_interactivehook_isolated (test.test_site.StartupImportTests.test_startup_interactivehook_isolated) ... ok
test_startup_interactivehook_isolated_explicit (test.test_site.StartupImportTests.test_startup_interactivehook_isolated_explicit) ... ok
test_underpth_basic (test.test_site._pthFileTests.test_underpth_basic) ... FAIL
test_underpth_dll_file (test.test_site._pthFileTests.test_underpth_dll_file) ... skipped 'library ._pth file not supported on this platform'
test_underpth_file (test.test_site._pthFileTests.test_underpth_file) ... FAIL
test_underpth_nosite_file (test.test_site._pthFileTests.test_underpth_nosite_file) ... FAIL

======================================================================
FAIL: test_getsitepackages (test.test_site.HelperFunctionsTests.test_getsitepackages)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_site.py", line 338, in test_getsitepackages
    self.assertEqual(dirs[-1], wanted)
         ^^^^^^^^^^^
AssertionError: 'xoxo/lib/pypy3.12/site-packages' != 'xoxo/lib/python3.12/site-packages'
- xoxo/lib/pypy3.12/site-packages
?            ^^
+ xoxo/lib/python3.12/site-packages
?            ^^^^


======================================================================
FAIL: test_underpth_basic (test.test_site._pthFileTests.test_underpth_basic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_site.py", line 673, in test_underpth_basic
    self.assertEqual(
         ^^^^^^^^^^^
AssertionError: Lists differ: [''] != ['/private/tmp/buildbot-x86_64/pytest/pytes[663 chars]est']

First differing element 0:
''
'/private/tmp/buildbot-x86_64/pytest/pytest-of-matti/pytest-800/test_site.py'

Second list contains 9 additional elements.
First extra element 1:
'/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build'

Diff is 748 characters long. Set self.maxDiff to None to see it. : sys.path is incorrect

======================================================================
FAIL: test_underpth_file (test.test_site._pthFileTests.test_underpth_file)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_site.py", line 721, in test_underpth_file
    self.assertTrue(rc, "sys.path is incorrect")
         ^^^^^^^^^^
AssertionError: 0 is not true : sys.path is incorrect

======================================================================
FAIL: test_underpth_nosite_file (test.test_site._pthFileTests.test_underpth_nosite_file)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_site.py", line 697, in test_underpth_nosite_file
    self.assertEqual(
         ^^^^^^^^^^^
AssertionError: Lists differ: [''] != ['/tmp/buildbot-x86_64/pytest/tmpj140g_iw/f[15810 chars]n/3']

First differing element 0:
''
'/tmp/buildbot-x86_64/pytest/tmpj140g_iw/fake-path-name'

Second list contains 200 additional elements.
First extra element 1:
'/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3'

Diff is 16468 characters long. Set self.maxDiff to None to see it. : sys.path is incorrect

----------------------------------------------------------------------
Ran 35 tests in 0.637s

FAILED (failures=4, skipped=5)
0:00:00 load avg: 1.29 [1/1/1] test_site failed (4 failures)

== Tests result: FAILURE ==

1 test failed:
    test_site

Total duration: 845 ms
Total tests: run=35 failures=4 skipped=5
Total test files: run=1/1 failed=1
Result: FAILURE
test test_site failed
builder: pypy-c-jit-macos-x86-64 build #1326+
test: lib-python/3/test/test_site.py::unmodified