summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-25 16:18:24 (GMT)
committerGitHub <noreply@github.com>2023-08-25 16:18:24 (GMT)
commit0eb6d87304b5ca8ed84e5c885e2cef3eb24a3e3a (patch)
tree548ff5c18a1d408e12074b09d7611a094cfb5d19 /Lib/test/test_decimal.py
parent22621907eea3f0ed4ccf5a69bcef70a70396b36b (diff)
downloadcpython-0eb6d87304b5ca8ed84e5c885e2cef3eb24a3e3a.zip
cpython-0eb6d87304b5ca8ed84e5c885e2cef3eb24a3e3a.tar.gz
cpython-0eb6d87304b5ca8ed84e5c885e2cef3eb24a3e3a.tar.bz2
[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>
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index d0ba348..4d3ea73 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -587,7 +587,7 @@ class ExplicitConstructionTest:
self.assertRaises(InvalidOperation, Decimal, "1_2_\u00003")
@cpython_only
- @requires_legacy_unicode_capi
+ @requires_legacy_unicode_capi()
@warnings_helper.ignore_warnings(category=DeprecationWarning)
def test_from_legacy_strings(self):
import _testcapi
@@ -2919,7 +2919,7 @@ class ContextAPItests:
Overflow])
@cpython_only
- @requires_legacy_unicode_capi
+ @requires_legacy_unicode_capi()
@warnings_helper.ignore_warnings(category=DeprecationWarning)
def test_from_legacy_strings(self):
import _testcapi