Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Test test_parallel_numpy_arrays fails on 32bits with Cython 3.0.10 and numpy 1.26.0 #6200

Open
stratakis opened this issue May 14, 2024 · 0 comments

Comments

@stratakis
Copy link

stratakis commented May 14, 2024

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'

OS

Linux

Python version

3.12

Cython version

3.0.10

@stratakis stratakis changed the title [BUG] Test fails on 32bits with Cython 3.0.10 and numpy 1.26.0 [BUG] Test test_parallel_numpy_arrays fails on 32bits with Cython 3.0.10 and numpy 1.26.0 May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant