mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
Issue #20152: Port the array module to Argument Clinic.
This commit is contained in:
parent
082c6cb183
commit
1eb32c2045
4 changed files with 875 additions and 278 deletions
|
@ -393,7 +393,9 @@ class BaseTest:
|
|||
self.assertEqual(a, b)
|
||||
|
||||
def test_tofromstring(self):
|
||||
nb_warnings = 4
|
||||
# Warnings not raised when arguments are incorrect as Argument Clinic
|
||||
# handles that before the warning can be raised.
|
||||
nb_warnings = 2
|
||||
with warnings.catch_warnings(record=True) as r:
|
||||
warnings.filterwarnings("always",
|
||||
message=r"(to|from)string\(\) is deprecated",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue