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

lib-python/3/test/test_bisect.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_267030æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1407254305
0:00:00 load avg: 1.24 Run 1 test sequentially in a single process
0:00:00 load avg: 1.24 [1/1] test_bisect
test_backcompatibility (test.test_bisect.TestBisectC.test_backcompatibility) ... ERROR
test_insort (test.test_bisect.TestBisectC.test_insort) ... ERROR
test_insort_keynotNone (test.test_bisect.TestBisectC.test_insort_keynotNone) ... ERROR
test_keyword_args (test.test_bisect.TestBisectC.test_keyword_args) ... ERROR
test_large_pyrange (test.test_bisect.TestBisectC.test_large_pyrange) ... ERROR
test_large_range (test.test_bisect.TestBisectC.test_large_range) ... ERROR
test_lookups_with_key_function (test.test_bisect.TestBisectC.test_lookups_with_key_function) ... ERROR
test_lt_returns_non_bool (test.test_bisect.TestBisectC.test_lt_returns_non_bool) ... ERROR
test_lt_returns_notimplemented (test.test_bisect.TestBisectC.test_lt_returns_notimplemented) ... ERROR
test_negative_lo (test.test_bisect.TestBisectC.test_negative_lo) ... ERROR
test_optionalSlicing (test.test_bisect.TestBisectC.test_optionalSlicing) ... ERROR
test_precomputed (test.test_bisect.TestBisectC.test_precomputed) ... ERROR
test_random (test.test_bisect.TestBisectC.test_random) ... ERROR
test_backcompatibility (test.test_bisect.TestBisectPython.test_backcompatibility) ... ok
test_insort (test.test_bisect.TestBisectPython.test_insort) ... ok
test_insort_keynotNone (test.test_bisect.TestBisectPython.test_insort_keynotNone) ... ok
test_keyword_args (test.test_bisect.TestBisectPython.test_keyword_args) ... ok
test_large_pyrange (test.test_bisect.TestBisectPython.test_large_pyrange) ... ok
test_large_range (test.test_bisect.TestBisectPython.test_large_range) ... ok
test_lookups_with_key_function (test.test_bisect.TestBisectPython.test_lookups_with_key_function) ... ok
test_lt_returns_non_bool (test.test_bisect.TestBisectPython.test_lt_returns_non_bool) ... ok
test_lt_returns_notimplemented (test.test_bisect.TestBisectPython.test_lt_returns_notimplemented) ... ok
test_negative_lo (test.test_bisect.TestBisectPython.test_negative_lo) ... ok
test_optionalSlicing (test.test_bisect.TestBisectPython.test_optionalSlicing) ... ok
test_precomputed (test.test_bisect.TestBisectPython.test_precomputed) ... ok
test_random (test.test_bisect.TestBisectPython.test_random) ... ok
test_colors (test.test_bisect.TestDocExampleC.test_colors) ... ERROR
test_grades (test.test_bisect.TestDocExampleC.test_grades) ... ERROR
test_colors (test.test_bisect.TestDocExamplePython.test_colors) ... ok
test_grades (test.test_bisect.TestDocExamplePython.test_grades) ... ok
test_arg_parsing (test.test_bisect.TestErrorHandlingC.test_arg_parsing) ... ERROR
test_cmp_err (test.test_bisect.TestErrorHandlingC.test_cmp_err) ... ERROR
test_get_only (test.test_bisect.TestErrorHandlingC.test_get_only) ... ERROR
test_len_only (test.test_bisect.TestErrorHandlingC.test_len_only) ... ERROR
test_non_sequence (test.test_bisect.TestErrorHandlingC.test_non_sequence) ... ERROR
test_arg_parsing (test.test_bisect.TestErrorHandlingPython.test_arg_parsing) ... ok
test_cmp_err (test.test_bisect.TestErrorHandlingPython.test_cmp_err) ... ok
test_get_only (test.test_bisect.TestErrorHandlingPython.test_get_only) ... ok
test_len_only (test.test_bisect.TestErrorHandlingPython.test_len_only) ... ok
test_non_sequence (test.test_bisect.TestErrorHandlingPython.test_non_sequence) ... ok
test_backcompatibility (test.test_bisect.TestInsortC.test_backcompatibility) ... ERROR
test_listDerived (test.test_bisect.TestInsortC.test_listDerived) ... ERROR
test_vsBuiltinSort (test.test_bisect.TestInsortC.test_vsBuiltinSort) ... ERROR
test_backcompatibility (test.test_bisect.TestInsortPython.test_backcompatibility) ... ok
test_listDerived (test.test_bisect.TestInsortPython.test_listDerived) ... ok
test_vsBuiltinSort (test.test_bisect.TestInsortPython.test_vsBuiltinSort) ... ok

======================================================================
ERROR: test_backcompatibility (test.test_bisect.TestBisectC.test_backcompatibility)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_insort (test.test_bisect.TestBisectC.test_insort)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_insort_keynotNone (test.test_bisect.TestBisectC.test_insort_keynotNone)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_keyword_args (test.test_bisect.TestBisectC.test_keyword_args)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_large_pyrange (test.test_bisect.TestBisectC.test_large_pyrange)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_large_range (test.test_bisect.TestBisectC.test_large_range)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_lookups_with_key_function (test.test_bisect.TestBisectC.test_lookups_with_key_function)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_lt_returns_non_bool (test.test_bisect.TestBisectC.test_lt_returns_non_bool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_lt_returns_notimplemented (test.test_bisect.TestBisectC.test_lt_returns_notimplemented)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_negative_lo (test.test_bisect.TestBisectC.test_negative_lo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_optionalSlicing (test.test_bisect.TestBisectC.test_optionalSlicing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_precomputed (test.test_bisect.TestBisectC.test_precomputed)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_random (test.test_bisect.TestBisectC.test_random)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 35, in setUp
    (self.module.bisect_right, [], 1, 0),
                 ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_right'

======================================================================
ERROR: test_colors (test.test_bisect.TestDocExampleC.test_colors)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 405, in test_colors
    bisect_left = self.module.bisect_left
                              ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_grades (test.test_bisect.TestDocExampleC.test_grades)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 398, in test_grades
    result = [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 398, in <listcomp>
    result = [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]
              ^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 395, in grade
    i = self.module.bisect(breakpoints, score)
                    ^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect'

======================================================================
ERROR: test_arg_parsing (test.test_bisect.TestErrorHandlingC.test_arg_parsing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 380, in test_arg_parsing
    for f in (self.module.bisect_left, self.module.bisect_right,
                          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_cmp_err (test.test_bisect.TestErrorHandlingC.test_cmp_err)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 375, in test_cmp_err
    for f in (self.module.bisect_left, self.module.bisect_right,
                          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_get_only (test.test_bisect.TestErrorHandlingC.test_get_only)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 369, in test_get_only
    for f in (self.module.bisect_left, self.module.bisect_right,
                          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_len_only (test.test_bisect.TestErrorHandlingC.test_len_only)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 364, in test_len_only
    for f in (self.module.bisect_left, self.module.bisect_right,
                          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_non_sequence (test.test_bisect.TestErrorHandlingC.test_non_sequence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 359, in test_non_sequence
    for f in (self.module.bisect_left, self.module.bisect_right,
                          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bisect_left'

======================================================================
ERROR: test_backcompatibility (test.test_bisect.TestInsortC.test_backcompatibility)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 316, in test_backcompatibility
    self.assertEqual(self.module.insort, self.module.insort_right)
                                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'insort'

======================================================================
ERROR: test_listDerived (test.test_bisect.TestInsortC.test_listDerived)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 325, in test_listDerived
    self.module.insort_left(lst, 10)
                ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'insort_left'

======================================================================
ERROR: test_vsBuiltinSort (test.test_bisect.TestInsortC.test_vsBuiltinSort)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_bisect.py", line 309, in test_vsBuiltinSort
    f = self.module.insort_left
                    ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'insort_left'

----------------------------------------------------------------------
Ran 46 tests in 0.079s

FAILED (errors=23)
0:00:00 load avg: 1.24 [1/1/1] test_bisect failed (23 errors)

== Tests result: FAILURE ==

1 test failed:
    test_bisect

Total duration: 157 ms
Total tests: run=46
Total test files: run=1/1 failed=1
Result: FAILURE
test test_bisect failed
builder: pypy-c-jit-linux-x86-64 build #11852+
test: lib-python/3/test/test_bisect.py::unmodified