Skip to content

Cython 0.29.x Python 3.12.0a5+ tracker #5285

Closed

Description

@hroncok

Hello,
I am trying o make Cython 0.29.x work with Python 3.12.0a5+, so @hrnciar can continue testing Fedora packages with pre-releases of Python 3.12.

The idea is that once I make it work I'll contribute backports here and/or other interested folks contribute backports here and I'll test them in Fedora.

Note: We have considered upgrading to Cython 3.0.0b1 but far too many of our packages are not buildable with it (I've asked @hrnciar to provide a summary of the failures to you, in case you'd like that).

Following up on #5238 (comment) and 58d5fed61c I came up with this WIP patch for 0.29.33:

diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 33aac2c4a..b3de5dd75 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -210,6 +210,10 @@
   #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
     #define CYTHON_USE_PYLONG_INTERNALS 1
   #endif
+  #if PY_VERSION_HEX >= 0x030C00A5
+    #undef CYTHON_USE_PYLONG_INTERNALS
+    #define CYTHON_USE_PYLONG_INTERNALS 0
+  #endif
   #ifndef CYTHON_USE_PYLIST_INTERNALS
     #define CYTHON_USE_PYLIST_INTERNALS 1
   #endif
@@ -252,7 +256,7 @@
     #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
   #endif
   #ifndef CYTHON_USE_DICT_VERSIONS
-    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
+    #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5))
   #endif
   #if PY_VERSION_HEX >= 0x030B00A4
     #undef CYTHON_USE_EXC_INFO_STACK

This makes Cython at least build itself. However, the tests still fail.

Full logs: builder-live.log.gz

The test failures I could recognize are:

Exception hints

Expected:
    Traceback (most recent call last):
    ...
    AttributeError: 'special_methods_T561_py3.VerySpecial' object has no attribute '__xxx__'
Got:
    Traceback (most recent call last):
    ...
    AttributeError: 'special_methods_T561_py3.VerySpecial' object has no attribute '__xxx__'. Did you mean: '__yyy__'?

This looks like a test-expectation problem only and when I look at the master branch, I see that possibly the same failures would happen there as well.

Confirmed: This also happens with 3.0.0b1. Fixed in d883ccd

getattribute examples

Failed example:
    g11 = object.__getattribute__(GetAttribute(), '__getattribute__')
Expected nothing
Got:
    GetAttribute getattribute '__dict__'
    GetAttribute getattribute '__class__'
    GetAttribute getattribute '__dict__'
    GetAttribute getattribute '__class__'

This also happens with 3.0.0b1.

Failed example:
    (a.called_getattr, a.called_getattribute)
Expected:
    (2, 11)
Got:
    (6, 15)

This also happens with 3.0.0b1.

builtins.bool size changed (fixed in 3.0.0b1)

ERROR: runTest (__main__.CythonRunTestCase.runTest)
[0] compiling (cpp) and running type_inference
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1270, in run
    self.run_tests(result, ext_so_path)
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1288, in run_tests
    self.run_doctests(self.module, result, ext_so_path)
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1302, in run_doctests
    run_forked_test(result, run_test, self.shortDescription(), self.fork)
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1307, in run_forked_test
    run_func(result)
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1294, in run_test
    module = import_ext(module_or_name, ext_so_path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 502, in import_ext
    return imp.load_dynamic(module_name, file_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/imp.py", line 343, in load_dynamic
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 872, in _load
  File "<frozen importlib._bootstrap>", line 841, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1314, in exec_module
  File "<frozen importlib._bootstrap>", line 400, in _call_with_frames_removed
  File "tests/run/type_inference.pyx", line 1, in init type_inference (type_inference.cpp:27226)
    # cython: infer_types = True
ValueError: builtins.bool size changed, may indicate binary incompatibility. Expected 32 from C header, got 24 from PyObject

This is only happening with 0.29.x.

Backported in 43ce558

undefined symbols

ImportError: /builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_unicode_strings/py_unicode_strings.cpython-312-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromUnicode

It's only used if you use the old Py_UNICODE type explicitly in your code. We disable the respective tests on CPython versions that no longer support it (without deprecation warnings).

We need to backport runtest.py changes from 9d38bf8 / #5154

Activity

  1. hroncok commented on Mar 1, 2023

    @hroncok
    ContributorAuthor

    I'm now building 3.0.0b1 again to see what test failures from above (if any) are missing.

  2. matusvalo commented on Mar 1, 2023

    @matusvalo
    Contributor

    I am trying o make Cython 0.29.x work with Python 3.12.0a5+,

    Cython 0.29.x will need some work in order to work with 3.12 release because there will be several removals breaking cython 0.29.X:

    [1] https://docs.python.org/3.11/library/imp.html
    [2] https://docs.python.org/3/library/distutils.html

  3. hroncok commented on Mar 2, 2023

    @hroncok
    ContributorAuthor

    builtins.bool size changed

    Possibly python/cpython#101394

    >>> bool.__basicsize__  # Python 3.12.0a4
    32
    
    >>> bool.__basicsize__  # Python 3.12.0a5
    24

    I might need to backport #4894 which builds on top of #4869

    Draft PR: #5289

  4. hroncok commented on Mar 2, 2023

    @hroncok
    ContributorAuthor
    • distutils package is going to be removed in 3.12

    That removal already happened and using distutils shipped via setuptools seems to work, at least for Fedora.

  5. hroncok commented on Mar 3, 2023

    @hroncok
    ContributorAuthor

    PyUnicode_FromUnicode still appears to be used in master, not sure why I didn't get the errors when I built b1:

    #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
    #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
    #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode

  6. matusvalo commented on Mar 4, 2023

    @matusvalo
    Contributor

    In order to support python 3.12 in Cython 0.29.X we need to backport following PRs (imp module is going to be removed - python/cpython#98573):

    #4941
    #4625

    I can create backport PRs to 0.29.X branch.

  7. scoder commented on Mar 4, 2023

    @scoder
    Contributor
  8. scoder commented on Mar 5, 2023

    @scoder
    Contributor

    #4941

    This looks small enough for a backport.

    #4625

    This seems stretching it. I'd rather not risk issues with Py<3.12 in 0.29.x any more. I can live with pyximport being broken in Py3.12 and later in 0.29.x, it's really only a dev tool, not meant for production systems.

  9. da-woods commented on Mar 5, 2023

    @da-woods
    Collaborator

    I can live with pyximport being broken in Py3.12 and later in 0.29.x, it's really only a dev tool, not meant for production systems.

    If we get too many issues, we could possibly split off a pyximport_future package so that people have something to use with Py3.12 and Cy 0.29.x. I'd be tempted not to do that until actually needed, but it's an option.

  10. hroncok commented on Mar 5, 2023

    @hroncok
    ContributorAuthor

    PyUnicode_FromUnicode still appears to be used in master
    It's only used if you use the old Py_UNICODE type explicitly in your code. We disable the respective tests on CPython versions that no longer support it (without deprecation warnings).

    9d38bf8 / #5154

  11. scoder commented on Mar 7, 2023

    @scoder
    Contributor

    I disabled the usage of PyLong internals and dict versioning for Py3.12 in 3397705, only for the 0.29.x branch, similar to your WIP patch above. Both are optimisations, it's ok to disable them for 0.29.x. Users who want fast support for Py3.12 should migrate to Cython 3.0.

  12. scoder commented on Mar 7, 2023

    @scoder
    Contributor

    I picked the change from 9d38bf8 to disable the py_unicode_strings test and also worked around the exception output changes.

    21e64ec
    d883ccd

  13. hroncok commented on Mar 7, 2023

    @hroncok
    ContributorAuthor

    Awesome, thanks. I planned to open more PRs today, so let me test your commits instead.

  14. hroncok commented on Mar 7, 2023

    @hroncok
    ContributorAuthor

    Testing this combination on top of 0.29.33:

  15. hroncok commented on Mar 7, 2023

    @hroncok
    ContributorAuthor

    Testing this combination on top of 0.29.33:

    * Stop using PyLong internals and dict versioning in Py3.12 for 0.29.x [3397705](https://github.com/cython/cython/commit/3397705da036bb2df4a5b8b4bf08dbad7bdb409f)
    
    * Allow Py3.12 AttributeError suggestions in doctest output [d883ccd](https://github.com/cython/cython/commit/d883ccdec11dabc41e43e98ff4e12da5649e6316)
    
    * Disable "py_unicode_strings" test in Py3.12, which removed the support for it [21e64ec](https://github.com/cython/cython/commit/21e64ec20619d9ac530030a8e0c259912af10407)
    
    * [[0.29] Account for possible extension type struct padding when calculating the itemsize for the "size changed" check #5289](https://github.com/cython/cython/pull/5289)
    

    With that I get:

    ======================================================================
    FAIL: boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: boring_boring_getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: getattr_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring
    Failed example:
        a.getattr_called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: getattr_boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring_boring_getattribute
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_boring_boring_getattr (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_boring_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_boring_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_boring_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_boring_getattr
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        11
    
    
    ======================================================================
    FAIL: boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: boring_boring_getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: getattr_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring
    Failed example:
        a.getattr_called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: getattr_boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring_boring_getattribute
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_boring_boring_getattr (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_boring_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_boring_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_boring_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_boring_getattr
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        11
    
    
    ======================================================================
    FAIL: test_close (pure_doctest__generators_py)
    Doctest: pure_doctest__generators_py.test_close
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__generators_py.test_close
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/generators_py.py", line 85, in test_close
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/generators_py.py", line 92, in pure_doctest__generators_py.test_close
    Failed example:
        next(x)
    Expected:
        Traceback (most recent call last):
        StopIteration
    Got nothing
    
    
    ======================================================================
    FAIL: TestCdefAttr (py_classbody)
    Doctest: py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (py_classbody)
    Doctest: py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    FAIL: TestCdefAttr (py_classbody)
    Doctest: py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (py_classbody)
    Doctest: py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    FAIL: TestCdefAttr (pure_doctest__py_classbody)
    Doctest: pure_doctest__py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 26, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 28, in pure_doctest__py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest pure_doctest__py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (pure_doctest__py_classbody)
    Doctest: pure_doctest__py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 7, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 9, in pure_doctest__py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest pure_doctest__py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    ERROR: runTest (__main__.CythonCompileTestCase.runTest)
    [0] compiling (c) pylong
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
        spawn(cmd, dry_run=self.dry_run, **kwargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
        raise DistutilsExecError(
    distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 938, in runTest
        self.runCompileTest()
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
    
    ======================================================================
    ERROR: runTest (__main__.CythonCompileTestCase.runTest)
    [0] compiling (cpp) pylong
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
        spawn(cmd, dry_run=self.dry_run, **kwargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
        raise DistutilsExecError(
    distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 938, in runTest
        self.runCompileTest()
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
    
    ======================================================================
    FAIL: both (__getattribute__)
    Doctest: __getattribute__.both
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.both
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in both
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.both
    Failed example:
        (a.called_getattr, a.called_getattribute)
    Expected:
        (2, 11)
    Got:
        (6, 15)
    
    
    ======================================================================
    FAIL: just_getattr (__getattribute__)
    Doctest: __getattribute__.just_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattr
    Failed example:
        a.called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: just_getattribute (__getattribute__)
    Doctest: __getattribute__.just_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattribute
    Failed example:
        a.called
    Expected:
        6
    Got:
        10
    
    
    ======================================================================
    FAIL: both (__getattribute__)
    Doctest: __getattribute__.both
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.both
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in both
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.both
    Failed example:
        (a.called_getattr, a.called_getattribute)
    Expected:
        (2, 11)
    Got:
        (6, 15)
    
    
    ======================================================================
    FAIL: just_getattr (__getattribute__)
    Doctest: __getattribute__.just_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattr
    Failed example:
        a.called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: just_getattribute (__getattribute__)
    Doctest: __getattribute__.just_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattribute
    Failed example:
        a.called
    Expected:
        6
    Got:
        10
    
    
    ======================================================================
    FAIL: special_methods_T561 ()
    Doctest: special_methods_T561
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for special_methods_T561
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 1, in special_methods_T561
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 34, in special_methods_T561
    Failed example:
        g11 = object.__getattribute__(GetAttribute(), '__getattribute__')
    Expected nothing
    Got:
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
    
    
    ======================================================================
    FAIL: special_methods_T561 ()
    Doctest: special_methods_T561
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for special_methods_T561
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 1, in special_methods_T561
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 34, in special_methods_T561
    Failed example:
        g11 = object.__getattribute__(GetAttribute(), '__getattribute__')
    Expected nothing
    Got:
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
    
    
    ======================================================================
    ERROR: runTest (__main__.CythonRunTestCase.runTest)
    [1] compiling (c) and running longintrepr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1269, in run
        ext_so_path = self.runCompileTest()
                      ^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 89, in <lambda>
        m = lambda self, *args, **kw: func(self, *args, **kw)
                                      ^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 365, in CCompiler_compile
        single_compile(o)
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 325, in single_compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 89, in <lambda>
        m = lambda self, *args, **kw: func(self, *args, **kw)
                                      ^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/unixccompiler.py", line 58, in UnixCCompiler__compile
        raise CompileError(msg) from None
    distutils.errors.CompileError: Command "gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCYTHON_REFNANNY=1 -DCYTHON_CLINE_IN_TRACEBACK=1 -I/builddir/build/BUILD/cython-0.29.33/tests/run -I/usr/include/python3.12 -c longintrepr.c -o /builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/longintrepr/longintrepr.o -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" failed with exit status 1
    
    ======================================================================
    ERROR: runTest (__main__.CythonRunTestCase.runTest)
    [1] compiling (cpp) and running longintrepr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1269, in run
        ext_so_path = self.runCompileTest()
                      ^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 89, in <lambda>
        m = lambda self, *args, **kw: func(self, *args, **kw)
                                      ^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 365, in CCompiler_compile
        single_compile(o)
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 325, in single_compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/ccompiler.py", line 89, in <lambda>
        m = lambda self, *args, **kw: func(self, *args, **kw)
                                      ^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/site-packages/numpy/distutils/unixccompiler.py", line 58, in UnixCCompiler__compile
        raise CompileError(msg) from None
    distutils.errors.CompileError: Command "gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCYTHON_REFNANNY=1 -DCYTHON_CLINE_IN_TRACEBACK=1 -I/builddir/build/BUILD/cython-0.29.33/tests/run -I/usr/include/python3.12 -c longintrepr.cpp -o /builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/longintrepr/longintrepr.o -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" failed with exit status 1
    
    ======================================================================
    FAIL: boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: boring_boring_getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: getattr_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring
    Failed example:
        a.getattr_called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: getattr_boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring_boring_getattribute
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_boring_boring_getattr (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_boring_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_boring_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_boring_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_boring_getattr
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        11
    
    
    ======================================================================
    FAIL: boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: boring_boring_getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.boring_boring_getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.boring_boring_getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in boring_boring_getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        13
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.boring_boring_getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        9
    Got:
        21
    
    
    ======================================================================
    FAIL: getattr_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring
    Failed example:
        a.getattr_called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: getattr_boring_boring_getattribute (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattr_boring_boring_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattr_boring_boring_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattr_boring_boring_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattr_boring_boring_getattribute
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_boring_boring_getattr (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_boring_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_boring_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_boring_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_boring_getattr
    Failed example:
        (a.getattr_called, a.getattribute_called)
    Expected:
        (7, 14)
    Got:
        (11, 18)
    
    
    ======================================================================
    FAIL: getattribute_boring_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_boring_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_boring_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_boring_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        3
    Got:
        7
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        5
    Got:
        9
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_boring_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        15
    
    
    ======================================================================
    FAIL: getattribute_py (__getattribute_subclasses__)
    Doctest: __getattribute_subclasses__.getattribute_py
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute_subclasses__.getattribute_py
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in getattribute_py
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/__getattribute_subclasses__/__getattribute_subclasses__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute_subclasses__.getattribute_py
    Failed example:
        a.getattribute_called
    Expected:
        7
    Got:
        11
    
    
    ======================================================================
    FAIL: test_close (pure_doctest__generators_py)
    Doctest: pure_doctest__generators_py.test_close
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__generators_py.test_close
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/generators_py.py", line 85, in test_close
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/generators_py.py", line 92, in pure_doctest__generators_py.test_close
    Failed example:
        next(x)
    Expected:
        Traceback (most recent call last):
        StopIteration
    Got nothing
    
    
    ======================================================================
    FAIL: TestCdefAttr (py_classbody)
    Doctest: py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (py_classbody)
    Doctest: py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/c/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    FAIL: TestCdefAttr (py_classbody)
    Doctest: py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (py_classbody)
    Doctest: py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line unknown line number, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/1/run/cpp/py_classbody/py_classbody.cpython-312-x86_64-linux-gnu.so", line ?, in py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    FAIL: TestCdefAttr (pure_doctest__py_classbody)
    Doctest: pure_doctest__py_classbody.TestCdefAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__py_classbody.TestCdefAttr
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 26, in TestCdefAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 28, in pure_doctest__py_classbody.TestCdefAttr
    Failed example:
        TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestCdefAttr...has no attribute 'cdefvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest pure_doctest__py_classbody.TestCdefAttr[0]>", line 1, in <module>
            TestCdefAttr.cdefvar   # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestCdefAttr' has no attribute 'cdefvar'. Did you mean: 'cdefval1'?
    
    
    ======================================================================
    FAIL: TestPyAttr (pure_doctest__py_classbody)
    Doctest: pure_doctest__py_classbody.TestPyAttr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for pure_doctest__py_classbody.TestPyAttr
      File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 7, in TestPyAttr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/tests/run/py_classbody.py", line 9, in pure_doctest__py_classbody.TestPyAttr
    Failed example:
        TestPyAttr.pyvar    # doctest: +ELLIPSIS
    Expected:
        Traceback (most recent call last):
        AttributeError: ...TestPyAttr...has no attribute 'pyvar'
    Got:
        Traceback (most recent call last):
          File "/usr/lib64/python3.12/doctest.py", line 1357, in __run
            exec(compile(example.source, filename, "single",
          File "<doctest pure_doctest__py_classbody.TestPyAttr[0]>", line 1, in <module>
            TestPyAttr.pyvar    # doctest: +ELLIPSIS
            ^^^^^^^^^^^^^^^^
        AttributeError: type object 'TestPyAttr' has no attribute 'pyvar'. Did you mean: 'pyval1'?
    
    
    ======================================================================
    ERROR: runTest (__main__.CythonCompileTestCase.runTest)
    [0] compiling (c) pylong
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
        spawn(cmd, dry_run=self.dry_run, **kwargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
        raise DistutilsExecError(
    distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 938, in runTest
        self.runCompileTest()
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
    
    ======================================================================
    ERROR: runTest (__main__.CythonCompileTestCase.runTest)
    [0] compiling (cpp) pylong
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
        spawn(cmd, dry_run=self.dry_run, **kwargs)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
        raise DistutilsExecError(
    distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 938, in runTest
        self.runCompileTest()
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 942, in runCompileTest
        return self.compile(
               ^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1202, in compile
        so_path = self.run_distutils(test_directory, module, workdir, incdir)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 1123, in run_distutils
        build_extension.run()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/builddir/build/BUILD/cython-0.29.33/runtests.py", line 531, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
    
    ======================================================================
    FAIL: both (__getattribute__)
    Doctest: __getattribute__.both
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.both
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in both
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.both
    Failed example:
        (a.called_getattr, a.called_getattribute)
    Expected:
        (2, 11)
    Got:
        (6, 15)
    
    
    ======================================================================
    FAIL: just_getattr (__getattribute__)
    Doctest: __getattribute__.just_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattr
    Failed example:
        a.called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: just_getattribute (__getattribute__)
    Doctest: __getattribute__.just_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattribute
    Failed example:
        a.called
    Expected:
        6
    Got:
        10
    
    
    ======================================================================
    FAIL: both (__getattribute__)
    Doctest: __getattribute__.both
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.both
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in both
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.both
    Failed example:
        (a.called_getattr, a.called_getattribute)
    Expected:
        (2, 11)
    Got:
        (6, 15)
    
    
    ======================================================================
    FAIL: just_getattr (__getattribute__)
    Doctest: __getattribute__.just_getattr
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattr
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattr
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattr
    Failed example:
        a.called
    Expected:
        2
    Got:
        4
    
    
    ======================================================================
    FAIL: just_getattribute (__getattribute__)
    Doctest: __getattribute__.just_getattribute
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for __getattribute__.just_getattribute
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line unknown line number, in just_getattribute
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/__getattribute__/__getattribute__.cpython-312-x86_64-linux-gnu.so", line ?, in __getattribute__.just_getattribute
    Failed example:
        a.called
    Expected:
        6
    Got:
        10
    
    
    ======================================================================
    FAIL: special_methods_T561 ()
    Doctest: special_methods_T561
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for special_methods_T561
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 1, in special_methods_T561
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/c/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 34, in special_methods_T561
    Failed example:
        g11 = object.__getattribute__(GetAttribute(), '__getattribute__')
    Expected nothing
    Got:
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
    
    
    ======================================================================
    FAIL: special_methods_T561 ()
    Doctest: special_methods_T561
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/doctest.py", line 2228, in runTest
        raise self.failureException(self.format_failure(new.getvalue()))
    AssertionError: Failed doctest test for special_methods_T561
      File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 1, in special_methods_T561
    
    ----------------------------------------------------------------------
    File "/builddir/build/BUILD/cython-0.29.33/TEST_TMP/0/run/cpp/special_methods_T561/special_methods_T561.cpython-312-x86_64-linux-gnu.so", line 34, in special_methods_T561
    Failed example:
        g11 = object.__getattribute__(GetAttribute(), '__getattribute__')
    Expected nothing
    Got:
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
        GetAttribute getattribute '__dict__'
        GetAttribute getattribute '__class__'
    
  16. mattip commented on May 15, 2023

    @mattip
    Contributor

    From numpy/numpy#23766

    In __Pyx_PyThreadState_Current the tstate fields used no longer exist in the struct on CPython 3.12.0a7.

  17. mattip commented on May 15, 2023

    @mattip
    Contributor

    The exception fields were replaced due to python/cpython#101578 with a single PyObject *current_exception

  18. scoder commented on May 16, 2023

    @scoder
    Contributor

    In __Pyx_PyThreadState_Current the tstate fields used no longer exist in the struct on CPython 3.12.0a7.

    These fields shouldn't be used in 0.29.x any more. We disabled the CYTHON_FAST_THREAD_STATE feature there. (BTW, the change came in 3.12a6 already.)

  19. da-woods commented on Feb 2, 2024

    @da-woods
    Collaborator

    I'm going to close this because I think Python 3.12 works as well as it's going to with Cython. The only remaining issue is tracing, and we've concluded we can't fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions