]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-124570: ctypes: Run some Structure tests on Union as well (GH-124976)
authorPetr Viktorin <encukou@gmail.com>
Thu, 10 Oct 2024 14:27:52 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2024 14:27:52 +0000 (16:27 +0200)
commit01fc3b34cc6994bc83b6540da3a8573e79dfbb56
treeec08af391a0c7143b56c9b9e682ea7b9c74b5017
parentc914212474792312bb125211bae5719650fe2f58
gh-124570: ctypes: Run some Structure tests on Union as well (GH-124976)

- Move some Structure tests to test_structunion; use a common base
  test class + two subclasses to run them on Union too
- Remove test_union for now as it's redundant

Note: `test_simple_structs` & `test_simple_unions` are in the common
file because they share `formats`.
Lib/test/test_ctypes/test_structunion.py [new file with mode: 0644]
Lib/test/test_ctypes/test_structures.py
Lib/test/test_ctypes/test_unions.py [deleted file]