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

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

== PyPy 3.12.13 (e18f94749c2a, Aug 22 2026, 05:15:34) [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_93165æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 2789028761
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 1.52 Run 1 test sequentially in a single process
0:00:00 load avg: 1.52 [1/1] test_peepholer
test_conditional_jump_backward_const_condition (test.test_peepholer.DirectCfgOptimizerTests.test_conditional_jump_backward_const_condition) ... skipped '_testinternalcapi required'
test_conditional_jump_backward_non_const_condition (test.test_peepholer.DirectCfgOptimizerTests.test_conditional_jump_backward_non_const_condition) ... skipped '_testinternalcapi required'
test_conditional_jump_forward_const_condition (test.test_peepholer.DirectCfgOptimizerTests.test_conditional_jump_forward_const_condition) ... skipped '_testinternalcapi required'
test_conditional_jump_forward_non_const_condition (test.test_peepholer.DirectCfgOptimizerTests.test_conditional_jump_forward_non_const_condition) ... skipped '_testinternalcapi required'
test_no_unsafe_static_swap (test.test_peepholer.DirectCfgOptimizerTests.test_no_unsafe_static_swap) ... skipped '_testinternalcapi required'
test_only_one_push_null_per_load_global (test.test_peepholer.DirectCfgOptimizerTests.test_only_one_push_null_per_load_global) ... skipped '_testinternalcapi required'
test_bpo_42057 (test.test_peepholer.TestBuglets.test_bpo_42057) ... ok
test_bpo_45773_pop_jump_if_false (test.test_peepholer.TestBuglets.test_bpo_45773_pop_jump_if_false) ... ok
test_bpo_45773_pop_jump_if_true (test.test_peepholer.TestBuglets.test_bpo_45773_pop_jump_if_true) ... ok
test_bug_11510 (test.test_peepholer.TestBuglets.test_bug_11510) ... ok
test_deleting_local_warns_and_assigns_none (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_deleting_local_warns_and_assigns_none) ... skipped 'implementation detail specific to cpython'
test_initializing_local_does_not_add_check (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_initializing_local_does_not_add_check) ... skipped 'implementation detail specific to cpython'
test_load_fast_known_because_already_loaded (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_known_because_already_loaded) ... skipped 'implementation detail specific to cpython'
test_load_fast_known_because_parameter (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_known_because_parameter) ... skipped 'implementation detail specific to cpython'
test_load_fast_known_multiple_branches (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_known_multiple_branches) ... skipped 'implementation detail specific to cpython'
test_load_fast_known_simple (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_known_simple) ... ok
test_load_fast_too_many_locals (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_too_many_locals) ... skipped 'implementation detail specific to cpython'
test_load_fast_unknown_after_error (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_unknown_after_error) ... skipped 'implementation detail specific to cpython'
test_load_fast_unknown_after_error_2 (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_unknown_after_error_2) ... skipped 'implementation detail specific to cpython'
test_load_fast_unknown_because_del (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_unknown_because_del) ... skipped 'implementation detail specific to cpython'
test_load_fast_unknown_simple (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_load_fast_unknown_simple) ... skipped 'implementation detail specific to cpython'
test_modifying_local_does_not_add_check (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_modifying_local_does_not_add_check) ... skipped 'implementation detail specific to cpython'
test_setting_lineno_no_undefined (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_setting_lineno_no_undefined) ... skipped 'implementation detail specific to cpython'
test_setting_lineno_one_undefined (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_setting_lineno_one_undefined) ... skipped 'implementation detail specific to cpython'
test_setting_lineno_two_undefined (test.test_peepholer.TestMarkingVariablesAsUnKnown.test_setting_lineno_two_undefined) ... skipped 'implementation detail specific to cpython'
test_assignment_idiom_in_comprehensions (test.test_peepholer.TestTranforms.test_assignment_idiom_in_comprehensions) ... ok
test_binary_subscr_on_unicode (test.test_peepholer.TestTranforms.test_binary_subscr_on_unicode) ... ok
test_condition_with_binop_with_bools (test.test_peepholer.TestTranforms.test_condition_with_binop_with_bools) ... ok
test_constant_folding (test.test_peepholer.TestTranforms.test_constant_folding) ... ok
test_elim_extra_return (test.test_peepholer.TestTranforms.test_elim_extra_return) ... ok
test_elim_inversion_of_is_or_in (test.test_peepholer.TestTranforms.test_elim_inversion_of_is_or_in) ... ok
test_elim_jump_after_return1 (test.test_peepholer.TestTranforms.test_elim_jump_after_return1) ... ok
test_elim_jump_to_return (test.test_peepholer.TestTranforms.test_elim_jump_to_return) ... FAIL
test_elim_jump_to_uncond_jump (test.test_peepholer.TestTranforms.test_elim_jump_to_uncond_jump) ... ok
test_elim_jump_to_uncond_jump2 (test.test_peepholer.TestTranforms.test_elim_jump_to_uncond_jump2) ... ok
test_elim_jump_to_uncond_jump3 (test.test_peepholer.TestTranforms.test_elim_jump_to_uncond_jump3) ... FAIL
test_elim_jump_to_uncond_jump4 (test.test_peepholer.TestTranforms.test_elim_jump_to_uncond_jump4) ... ok
test_folding_of_binops_on_constants (test.test_peepholer.TestTranforms.test_folding_of_binops_on_constants) ... ok
test_folding_of_lists_of_constants (test.test_peepholer.TestTranforms.test_folding_of_lists_of_constants) ... ok
test_folding_of_sets_of_constants (test.test_peepholer.TestTranforms.test_folding_of_sets_of_constants) ... ok
test_folding_of_tuples_of_constants (test.test_peepholer.TestTranforms.test_folding_of_tuples_of_constants) ... ok
test_folding_of_unaryops_on_constants (test.test_peepholer.TestTranforms.test_folding_of_unaryops_on_constants) ... ok
test_format_combinations (test.test_peepholer.TestTranforms.test_format_combinations) ... skipped "resource 'cpu' is not enabled"
test_format_errors (test.test_peepholer.TestTranforms.test_format_errors) ... ERROR
test_format_misc (test.test_peepholer.TestTranforms.test_format_misc) ... ok
test_global_as_constant (test.test_peepholer.TestTranforms.test_global_as_constant) ... ok
test_if_with_if_expression (test.test_peepholer.TestTranforms.test_if_with_if_expression) ... ok
test_in_literal_list (test.test_peepholer.TestTranforms.test_in_literal_list) ... ok
test_iterate_literal_list (test.test_peepholer.TestTranforms.test_iterate_literal_list) ... ok
test_make_function_doesnt_bail (test.test_peepholer.TestTranforms.test_make_function_doesnt_bail) ... skipped 'implementation detail specific to cpython'
test_pack_unpack (test.test_peepholer.TestTranforms.test_pack_unpack) ... ok
test_static_swaps_match_class (test.test_peepholer.TestTranforms.test_static_swaps_match_class) ... ok
test_static_swaps_match_mapping (test.test_peepholer.TestTranforms.test_static_swaps_match_mapping) ... ok
test_static_swaps_match_sequence (test.test_peepholer.TestTranforms.test_static_swaps_match_sequence) ... skipped 'unimplemented optimization'
test_static_swaps_unpack_three (test.test_peepholer.TestTranforms.test_static_swaps_unpack_three) ... ok
test_static_swaps_unpack_two (test.test_peepholer.TestTranforms.test_static_swaps_unpack_two) ... ok
test_trailing_nops (test.test_peepholer.TestTranforms.test_trailing_nops) ... ok
test_unot (test.test_peepholer.TestTranforms.test_unot) ... ok
test_while_one (test.test_peepholer.TestTranforms.test_while_one) ... skipped 'implementation detail specific to cpython'

======================================================================
ERROR: test_format_errors (test.test_peepholer.TestTranforms.test_format_errors)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_peepholer.py", line 614, in test_format_errors
    eval("'%s%z' % (x,)", {'x': 1234})
  File "<string>", line 1, in <module>
ValueError: unsupported format character 'z' (0x7a) at index 3

======================================================================
FAIL: test_elim_jump_to_return (test.test_peepholer.TestTranforms.test_elim_jump_to_return)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_peepholer.py", line 373, in test_elim_jump_to_return
    self.check_jump_targets(f)
         ^^^^^^^^^^^^^^^^^^
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_peepholer.py", line 56, in check_jump_targets
    self.fail(f'{instr.opname} at {instr.offset} '
         ^^^^
AssertionError: JUMP_FORWARD at 6 jumps to RETURN_VALUE at 10

======================================================================
FAIL: test_elim_jump_to_uncond_jump3 (test.test_peepholer.TestTranforms.test_elim_jump_to_uncond_jump3)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/test_peepholer.py", line 413, in test_elim_jump_to_uncond_jump3
    self.assertEqual(count_instr_recursively(f, 'POP_JUMP_IF_FALSE'), 2)
         ^^^^^^^^^^^
AssertionError: 0 != 2

----------------------------------------------------------------------
Ran 59 tests in 0.054s

FAILED (failures=2, errors=1, skipped=24)
0:00:00 load avg: 1.52 [1/1/1] test_peepholer failed (1 error, 2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_peepholer

Total duration: 147 ms
Total tests: run=59 failures=2 skipped=24
Total test files: run=1/1 failed=1
Result: FAILURE
test test_peepholer failed
builder: pypy-c-jit-macos-x86-64 build #1401+
test: lib-python/3/test/test_peepholer.py::unmodified