]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-80527: Change support.requires_legacy_unicode_capi() (#108438)
authorVictor Stinner <vstinner@python.org>
Thu, 24 Aug 2023 18:09:23 +0000 (20:09 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 18:09:23 +0000 (20:09 +0200)
commit995f4c48e11349fbfb9233e02b732d4534d3008e
tree12c92635d65f8db3b54f34b486641252e63a2c47
parentfa6933e035ba81ae3ed6ceac61b901a3d52b1e30
gh-80527: Change support.requires_legacy_unicode_capi() (#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.
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_str.py