Skip to content

ctypes.Union & ctypes.Structure: common features should be tested on both types #124570

@encukou

Description

@encukou

Currently, Lib/test/test_ctypes/test_structure.py is very long, but Lib/test/test_ctypes/test_union.py only has recent additions.
A lot of the Structure tests apply to Union as well, and should be run on both. My plan is:

  • Move tests of common features to Lib/test/test_ctypes/test_structunion.py, and use the “common base class + two subclasses” pattern used for tests of similar classes
  • Keep the Structure-specific tests in Lib/test/test_ctypes/test_structure.py

Linked PRs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions