Skip to content

MNT: new deprecations from CPython struct module in ctypes tests #28926

Open
@ngoldbaum

Description

@ngoldbaum

Running the tests with CPython 3.14.0b1, I see these failures:

FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_union_with_struct_packed - DeprecationWarning: Due to '_pack_', the 'Struct' Structure will use memory lay...
FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_union_packed - DeprecationWarning: Due to '_pack_', the 'Struct' Structure will use memory lay...
FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_packed_structure - DeprecationWarning: Due to '_pack_', the 'PackedStructure' Structure will use m...
FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_large_packed_structure - DeprecationWarning: Due to '_pack_', the 'PackedStructure' Structure will use m...
FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_big_endian_structure_packed - DeprecationWarning: Due to '_pack_', the 'BigEndStruct' Structure will use memo...
FAILED numpy/_core/tests/test_dtype.py::TestFromCTypes::test_little_endian_structure_packed - DeprecationWarning: Due to '_pack_', the 'LittleEndStruct' Structure will use m...
FAILED numpy/tests/test_ctypeslib.py::TestAsCtypesType::test_structure - DeprecationWarning: Due to '_pack_', the 'struct' Structure will use memory lay...
FAILED numpy/tests/test_ctypeslib.py::TestAsCtypesType::test_structure_aligned - DeprecationWarning: Due to '_pack_', the 'struct' Structure will use memory lay...
FAILED numpy/tests/test_ctypeslib.py::TestAsCtypesType::test_union - DeprecationWarning: Due to '_pack_', the 'union' Union will use memory layout c...
FAILED numpy/tests/test_ctypeslib.py::TestAsCtypesType::test_padded_union - DeprecationWarning: Due to '_pack_', the 'union' Union will use memory layout c...

For now I'm just going to filter these warnings in the tests with a link back to this issue. Someone should investigate this and figure out why we're triggering deprecation warnings and whether we want to adjust things or give upstream some feedback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions