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