Issue #20152: Port the array module to Argument Clinic.

This commit is contained in:
Brett Cannon 2014-10-10 16:26:45 -04:00
parent 082c6cb183
commit 1eb32c2045
4 changed files with 875 additions and 278 deletions

View file

@ -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",