Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924027 - dev-python/cython-3.0.8 fails tests on x86: AssertionError: Failed doctest test for cpp_stl_any.cast_test
Summary: dev-python/cython-3.0.8 fails tests on x86: AssertionError: Failed doctest te...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://github.com/cython/cython/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-07 23:22 UTC by matoro
Modified: 2024-03-10 08:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,133.05 KB, application/gzip)
2024-02-07 23:23 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-02-07 23:22:43 UTC
Debian also noticed this and reported upstream.  https://github.com/cython/cython/issues/5928

Errors from shard 3:
======================================================================
FAIL: cast_test (cpp_stl_any)
Doctest: cpp_stl_any.cast_test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.11/doctest.py", line 2241, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for cpp_stl_any.cast_test
  File "/var/tmp/portage/dev-python/cython-3.0.8/work/cython-3.0.8-python3_11/tests/3/run/cpp/cpp_stl_any/cpp_stl_any.cpython-311-i386-linux-gnu.so", line unknown line number, in cast_test

----------------------------------------------------------------------
File "/var/tmp/portage/dev-python/cython-3.0.8/work/cython-3.0.8-python3_11/tests/3/run/cpp/cpp_stl_any/cpp_stl_any.cpython-311-i386-linux-gnu.so", line ?, in cpp_stl_any.cast_test
Failed example:
    cast_test()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.11/doctest.py", line 1353, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest cpp_stl_any.cast_test[0]>", line 1, in <module>
        cast_test()
      File "tests/run/cpp_stl_any.pyx", line 44, in cpp_stl_any.cast_test (cpp_stl_any.cpp:2883)
        assert any_cast[double](a) == 3.14
    AssertionError


======================================================================
FAIL: cast_test (cpp_stl_any)
Doctest: cpp_stl_any.cast_test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.11/doctest.py", line 2241, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for cpp_stl_any.cast_test
  File "/var/tmp/portage/dev-python/cython-3.0.8/work/cython-3.0.8-python3_11/tests/3/run/cpp/cpp_stl_any_directives_cpp_locals_True/cpp_stl_any.cpython-311-i386-linux-gnu.so", line unknown line number, in cast_test

----------------------------------------------------------------------
File "/var/tmp/portage/dev-python/cython-3.0.8/work/cython-3.0.8-python3_11/tests/3/run/cpp/cpp_stl_any_directives_cpp_locals_True/cpp_stl_any.cpython-311-i386-linux-gnu.so", line ?, in cpp_stl_any.cast_test
Failed example:
    cast_test()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.11/doctest.py", line 1353, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest cpp_stl_any.cast_test[0]>", line 1, in <module>
        cast_test()
      File "tests/run/cpp_stl_any.pyx", line 44, in cpp_stl_any.cast_test (cpp_stl_any.cpp:2883)
        assert any_cast[double](a) == 3.14
    AssertionError


Reproducible: Always
Comment 1 matoro archtester 2024-02-07 23:23:54 UTC
Created attachment 884504 [details]
build.log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 08:13:52 UTC
The failure isn't serious enough to block stabilisation given the C99 fixes.