aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_csv.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 20:09:23 +0200
committerGitHub <noreply@github.com>2023-08-24 20:09:23 +0200
commit995f4c48e11349fbfb9233e02b732d4534d3008e (patch)
tree12c92635d65f8db3b54f34b486641252e63a2c47 /Lib/test/test_csv.py
parentfa6933e035ba81ae3ed6ceac61b901a3d52b1e30 (diff)
downloadcpython-995f4c48e11349fbfb9233e02b732d4534d3008e.tar.gz
cpython-995f4c48e11349fbfb9233e02b732d4534d3008e.zip
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.
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r--Lib/test/test_csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index 6a4180e6d1b..bc6879176cd 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -282,7 +282,7 @@ class Test_Csv(unittest.TestCase):
self.assertRaises(OSError, writer.writerows, BadIterable())
@support.cpython_only
- @support.requires_legacy_unicode_capi
+ @support.requires_legacy_unicode_capi()
@warnings_helper.ignore_warnings(category=DeprecationWarning)
def test_writerows_legacy_strings(self):
import _testcapi