diff options
author | Brett Cannon <brett@python.org> | 2014-10-10 20:26:45 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-10-10 20:26:45 (GMT) |
commit | 1eb32c20459b87ac42d6aba5d9eade8f9d129893 (patch) | |
tree | eb101c8769398993664b479f71a6e545329b2322 /Lib/test/test_array.py | |
parent | 082c6cb18321ca07be0284b837b17da363d797e2 (diff) | |
download | cpython-1eb32c20459b87ac42d6aba5d9eade8f9d129893.zip cpython-1eb32c20459b87ac42d6aba5d9eade8f9d129893.tar.gz cpython-1eb32c20459b87ac42d6aba5d9eade8f9d129893.tar.bz2 |
Issue #20152: Port the array module to Argument Clinic.
Diffstat (limited to 'Lib/test/test_array.py')
-rw-r--r-- | Lib/test/test_array.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index f8dbf06..28c83fd1 100644 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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", |