]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105751: test_ctypes: Remove @need_symbol decorator (GH-105798)
authorVictor Stinner <vstinner@python.org>
Wed, 14 Jun 2023 20:56:01 +0000 (22:56 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 20:56:01 +0000 (20:56 +0000)
commite7507bd131fbfbb49a6819a0d5ad5dd1e21b48cd
treee4d0192d74519d1f3050320f70dc1df027309e8b
parent4caa728b2c78c5ded7c91579f21fbb67e3867d80
gh-105751: test_ctypes: Remove @need_symbol decorator (GH-105798)

Remove the @need_symbol('...') decorator of test.test_ctypes since
requested symbols are now always always available in ctypes.

Use the @unittest.skipUnless() decorator directly for the two types
only available on Windows:

* ctypes.WINFUNCTYPE
* ctypes.oledll
17 files changed:
Lib/test/test_ctypes/__init__.py
Lib/test/test_ctypes/test_arrays.py
Lib/test/test_ctypes/test_as_parameter.py
Lib/test/test_ctypes/test_bitfields.py
Lib/test/test_ctypes/test_buffers.py
Lib/test/test_ctypes/test_callbacks.py
Lib/test/test_ctypes/test_cast.py
Lib/test/test_ctypes/test_cfuncs.py
Lib/test/test_ctypes/test_checkretval.py
Lib/test/test_ctypes/test_functions.py
Lib/test/test_ctypes/test_memfunctions.py
Lib/test/test_ctypes/test_parameters.py
Lib/test/test_ctypes/test_prototypes.py
Lib/test/test_ctypes/test_slicing.py
Lib/test/test_ctypes/test_strings.py
Lib/test/test_ctypes/test_structures.py
Lib/test/test_ctypes/test_unicode.py