Skip to content

test_ctypes failing on main #154106

Description

@tomasr8

test_ctypes seems to be failing consistently on the recent PRs:

FAIL: test_string_annotations (test.test_ctypes.test_structures.StructureTestCase.test_string_annotations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_ctypes/test_structures.py", line 962, in test_string_annotations
    self.assertEqual(Point._fields_, fields)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [('x', <class 'ctypes.c_int'>), ('y', <class 'ctypes.c_int'>)] != [['x', <class 'ctypes.c_int'>], ['y', <class 'ctypes.c_int'>]]

First differing element 0:
('x', <class 'ctypes.c_int'>)
['x', <class 'ctypes.c_int'>]

- [('x', <class 'ctypes.c_int'>), ('y', <class 'ctypes.c_int'>)]
?  ^                           ^  ^                           -

+ [['x', <class 'ctypes.c_int'>], ['y', <class 'ctypes.c_int'>]]
?  ^                           ^  ^                            +


cc @vstinner I think you added that test case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions