summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi/test_getargs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi/test_getargs.py')
-rw-r--r--Lib/test/test_capi/test_getargs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_capi/test_getargs.py b/Lib/test/test_capi/test_getargs.py
index 3792d1a..ec4100e 100644
--- a/Lib/test/test_capi/test_getargs.py
+++ b/Lib/test/test_capi/test_getargs.py
@@ -1021,7 +1021,7 @@ class String_TestCase(unittest.TestCase):
buf = bytearray()
self.assertRaises(ValueError, getargs_et_hash, 'abc\xe9', 'latin1', buf)
- @support.requires_legacy_unicode_capi
+ @support.requires_legacy_unicode_capi()
def test_u(self):
from _testcapi import getargs_u
with self.assertWarns(DeprecationWarning):
@@ -1037,7 +1037,7 @@ class String_TestCase(unittest.TestCase):
with self.assertWarns(DeprecationWarning):
self.assertRaises(TypeError, getargs_u, None)
- @support.requires_legacy_unicode_capi
+ @support.requires_legacy_unicode_capi()
def test_u_hash(self):
from _testcapi import getargs_u_hash
with self.assertWarns(DeprecationWarning):
@@ -1053,7 +1053,7 @@ class String_TestCase(unittest.TestCase):
with self.assertWarns(DeprecationWarning):
self.assertRaises(TypeError, getargs_u_hash, None)
- @support.requires_legacy_unicode_capi
+ @support.requires_legacy_unicode_capi()
def test_Z(self):
from _testcapi import getargs_Z
with self.assertWarns(DeprecationWarning):
@@ -1069,7 +1069,7 @@ class String_TestCase(unittest.TestCase):
with self.assertWarns(DeprecationWarning):
self.assertIsNone(getargs_Z(None))
- @support.requires_legacy_unicode_capi
+ @support.requires_legacy_unicode_capi()
def test_Z_hash(self):
from _testcapi import getargs_Z_hash
with self.assertWarns(DeprecationWarning):