]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438) (#108446)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 25 Aug 2023 16:18:24 +0000 (09:18 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2023 16:18:24 +0000 (18:18 +0200)
commit0eb6d87304b5ca8ed84e5c885e2cef3eb24a3e3a
tree548ff5c18a1d408e12074b09d7611a094cfb5d19
parent22621907eea3f0ed4ccf5a69bcef70a70396b36b
[3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438) (#108446)

gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438)

The decorator now requires to be called with parenthesis:

    @support.requires_legacy_unicode_capi()

instead of:

    @support.requires_legacy_unicode_capi

The implementation now only imports _testcapi when the decorator is
called, so "import test.support" no longer imports the _testcapi
extension.
(cherry picked from commit 995f4c48e11349fbfb9233e02b732d4534d3008e)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/support/__init__.py
Lib/test/test_capi/test_getargs.py
Lib/test/test_csv.py
Lib/test/test_decimal.py
Lib/test/test_unicode.py