mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| check_config.py | ||
| test_abstract.py | ||
| test_codecs.py | ||
| test_dict.py | ||
| test_eval_code_ex.py | ||
| test_exceptions.py | ||
| test_getargs.py | ||
| test_immortal.py | ||
| test_long.py | ||
| test_mem.py | ||
| test_misc.py | ||
| test_structmembers.py | ||
| test_unicode.py | ||
| test_watchers.py | ||