[cython/cython] [BUG] Test fails on 32bits with Cython 3.0.10 and numpy 1.26.0 (Issue #6200)

0 views
Skip to first unread message

stratakis

unread,
May 14, 2024, 4:49:01 PM5/14/24
to cython/cython, Subscribed

Describe the bug

After testing Cython 3.0.10 on Fedora, since https://github.com/cython/cython/pull/6076/files#diff-96d985c01fb72a88ed9f876ec8e8648ec582cc506a13c287882cfb2d42ad0197R25 this test fails on 32 bits with

Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.12/doctest.py", line 1361, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest numpy_parallel.test_parallel_numpy_arrays[0]>", line 1, in <module>
        test_parallel_numpy_arrays()
      File "tests/run/numpy_parallel.pyx", line 34, in numpy_parallel.test_parallel_numpy_arrays (numpy_parallel.c:4494)
        x = numpy.zeros(10, dtype=numpy.int_)
    ValueError: Buffer dtype mismatch, expected 'int64_t' but got 'long'

Code to reproduce the behaviour:

# example code

Expected behaviour

No response

OS

Linux

Python version

No response

Cython version

3.0.10

Additional context

No response


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <cython/cython/issues/6200@github.com>

Reply all
Reply to author
Forward
0 new messages