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

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

== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 06:28:39) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-4.19.90-2202.1.0.0136.oe1.aarch64-aarch64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_819836æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1936645880
0:00:00 load avg: 0.72 Run 1 test sequentially in a single process
0:00:00 load avg: 0.72 [1/1] test_support
test_CleanImport (test.test_support.TestSupport.test_CleanImport) ... ok
test_DirsOnSysPath (test.test_support.TestSupport.test_DirsOnSysPath) ... ok
test_HOST (test.test_support.TestSupport.test_HOST) ... ok
test_args_from_interpreter_flags (test.test_support.TestSupport.test_args_from_interpreter_flags) ... skipped "resource 'cpu' is not enabled"
test_bind_port (test.test_support.TestSupport.test_bind_port) ... ok
test_captured_stderr (test.test_support.TestSupport.test_captured_stderr) ... ok
test_captured_stdin (test.test_support.TestSupport.test_captured_stdin) ... ok
test_captured_stdout (test.test_support.TestSupport.test_captured_stdout) ... ok
test_change_cwd (test.test_support.TestSupport.test_change_cwd) ... ok
test_change_cwd__chdir_warning (test.test_support.TestSupport.test_change_cwd__chdir_warning)
Check the warning message when os.chdir() fails. ... ok
test_change_cwd__non_existent_dir (test.test_support.TestSupport.test_change_cwd__non_existent_dir)
Test passing a non-existent directory. ... ok
test_change_cwd__non_existent_dir__quiet_true (test.test_support.TestSupport.test_change_cwd__non_existent_dir__quiet_true)
Test passing a non-existent directory with quiet=True. ... ok
test_check__all__ (test.test_support.TestSupport.test_check__all__) ... ok
test_check_syntax_error (test.test_support.TestSupport.test_check_syntax_error) ... ok
test_copy_python_src_ignore (test.test_support.TestSupport.test_copy_python_src_ignore) ... skipped "cannot access Python source code directory: '/build_dir/pypy-c-jit-linux-aarch64/build/pypy/goal/Modules' landmark is missing"
test_detect_api_mismatch (test.test_support.TestSupport.test_detect_api_mismatch) ... ok
test_detect_api_mismatch__ignore (test.test_support.TestSupport.test_detect_api_mismatch__ignore) ... ok
test_fd_count (test.test_support.TestSupport.test_fd_count) ... ok
test_find_unused_port (test.test_support.TestSupport.test_find_unused_port) ... ok
test_forget (test.test_support.TestSupport.test_forget) ... ok
test_gc_collect (test.test_support.TestSupport.test_gc_collect) ... ok
test_get_attribute (test.test_support.TestSupport.test_get_attribute) ... ok
test_get_original_stdout (test.test_support.TestSupport.test_get_original_stdout) ... skipped 'failing buildbots'
test_get_recursion_depth (test.test_support.TestSupport.test_get_recursion_depth) ... FAIL
test_has_strftime_extensions (test.test_support.TestSupport.test_has_strftime_extensions) ... ok
test_ignored_deprecations_are_silent (test.test_support.TestSupport.test_ignored_deprecations_are_silent)
Test support.ignore_deprecations_from() silences warnings ... ok
test_import_fresh_module (test.test_support.TestSupport.test_import_fresh_module) ... ok
test_import_module (test.test_support.TestSupport.test_import_module) ... ok
test_make_bad_fd (test.test_support.TestSupport.test_make_bad_fd) ... ok
test_optim_args_from_interpreter_flags (test.test_support.TestSupport.test_optim_args_from_interpreter_flags) ... ok
test_parse_memlimit (test.test_support.TestSupport.test_parse_memlimit) ... ok
test_print_warning (test.test_support.TestSupport.test_print_warning) ... ok
test_python_is_optimized (test.test_support.TestSupport.test_python_is_optimized) ... ok
test_reap_children (test.test_support.TestSupport.test_reap_children) ... ok
test_recursion (test.test_support.TestSupport.test_recursion) ... skipped 'not supported on PyPy'
test_rmtree (test.test_support.TestSupport.test_rmtree) ... ok
test_set_memlimit (test.test_support.TestSupport.test_set_memlimit) ... ok
test_sortdict (test.test_support.TestSupport.test_sortdict) ... ok
test_swap_attr (test.test_support.TestSupport.test_swap_attr) ... ok
test_swap_item (test.test_support.TestSupport.test_swap_item) ... ok
test_temp_cwd (test.test_support.TestSupport.test_temp_cwd) ... ok
test_temp_cwd__name_none (test.test_support.TestSupport.test_temp_cwd__name_none)
Test passing None to temp_cwd(). ... ok
test_temp_dir (test.test_support.TestSupport.test_temp_dir)
Test that temp_dir() creates and destroys its directory. ... ok
test_temp_dir__existing_dir__quiet_default (test.test_support.TestSupport.test_temp_dir__existing_dir__quiet_default)
Test passing a directory that already exists. ... ok
test_temp_dir__existing_dir__quiet_true (test.test_support.TestSupport.test_temp_dir__existing_dir__quiet_true)
Test passing a directory that already exists with quiet=True. ... ok
test_temp_dir__forked_child (test.test_support.TestSupport.test_temp_dir__forked_child)
Test that a forked child process does not remove the directory. ... ok
test_temp_dir__path_none (test.test_support.TestSupport.test_temp_dir__path_none)
Test passing no path. ... ok
test_unlink (test.test_support.TestSupport.test_unlink) ... ok
test_unload (test.test_support.TestSupport.test_unload) ... ok

======================================================================
FAIL: test_get_recursion_depth (test.test_support.TestSupport.test_get_recursion_depth)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_support.py", line 628, in test_get_recursion_depth
    script_helper.assert_python_ok("-c", code)
                  ^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
        ^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/build_dir/pypy-c-jit-linux-aarch64/build/pypy/goal/pypy3.12-c', '-X', 'faulthandler', '-I', '-c', '\nfrom test import support\nimport sys\n\ndef check(cond):\n    if not cond:\n        raise AssertionError("test failed")\n\n# depth 1\ncheck(support.get_recursion_depth() == 1)\n\n# depth 2\ndef test_func():\n    check(support.get_recursion_depth() == 2)\ntest_func()\n\ndef test_recursive(depth, limit):\n    if depth >= limit:\n        # cannot call get_recursion_depth() at this depth,\n        # it can raise RecursionError\n        return\n    get_depth = support.get_recursion_depth()\n    print(f"test_recursive: {depth}/{limit}: "\n          f"get_recursion_depth() says {get_depth}")\n    check(get_depth == depth)\n    test_recursive(depth + 1, limit)\n\n# depth up to 25\nwith support.infinite_recursion(max_depth=25):\n    limit = sys.getrecursionlimit()\n    print(f"test with sys.getrecursionlimit()={limit}")\n    test_recursive(2, limit)\n\n# depth up to 500\nwith support.infinite_recursion(max_depth=500):\n    limit = sys.getrecursionlimit()\n    print(f"test with sys.getrecursionlimit()={limit}")\n    test_recursive(2, limit)\n']

stdout:
---
test with sys.getrecursionlimit()=26
test_recursive: 2/26: get_recursion_depth() says 2
test_recursive: 3/26: get_recursion_depth() says 3
test_recursive: 4/26: get_recursion_depth() says 4
test_recursive: 5/26: get_recursion_depth() says 5
test_recursive: 6/26: get_recursion_depth() says 6
test_recursive: 7/26: get_recursion_depth() says 7
test_recursive: 8/26: get_recursion_depth() says 8
test_recursive: 9/26: get_recursion_depth() says 9
test_recursive: 10/26: get_recursion_depth() says 10
test_recursive: 11/26: get_recursion_depth() says 11
test_recursive: 12/26: get_recursion_depth() says 12
test_recursive: 13/26: get_recursion_depth() says 13
test_recursive: 14/26: get_recursion_depth() says 14
test_recursive: 15/26: get_recursion_depth() says 15
test_recursive: 16/26: get_recursion_depth() says 16
test_recursive: 17/26: get_recursion_depth() says 17
test_recursive: 18/26: get_recursion_depth() says 18
test_recursive: 19/26: get_recursion_depth() says 19
test_recursive: 20/26: get_recursion_depth() says 20
test_recursive: 21/26: get_recursion_depth() says 21
test_recursive: 22/26: get_recursion_depth() says 22
test_recursive: 23/26: get_recursion_depth() says 23
test_recursive: 24/26: get_recursion_depth() says 24
---

stderr:
---
Traceback (most recent call last):
  File "<string>", line 32, in <module>
  File "<string>", line 26, in test_recursive
  File "<string>", line 26, in test_recursive
  File "<string>", line 26, in test_recursive
  [Previous line repeated 20 more times]
  File "<string>", line 23, in test_recursive
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/encodings/utf_8.py", line 20, in encode
    return codecs.utf_8_encode(input, self.errors)[0]
                  ^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
---

----------------------------------------------------------------------
Ran 49 tests in 2.234s

FAILED (failures=1, skipped=4)
0:00:02 load avg: 0.72 [1/1/1] test_support failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_support

Total duration: 2.4 sec
Total tests: run=49 failures=1 skipped=4
Total test files: run=1/1 failed=1
Result: FAILURE
test test_support failed
builder: pypy-c-jit-linux-aarch64 build #2946+
test: lib-python/3/test/test_support.py::unmodified