summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-10-10 20:26:45 (GMT)
committerBrett Cannon <brett@python.org>2014-10-10 20:26:45 (GMT)
commit1eb32c20459b87ac42d6aba5d9eade8f9d129893 (patch)
treeeb101c8769398993664b479f71a6e545329b2322 /Lib/test/test_array.py
parent082c6cb18321ca07be0284b837b17da363d797e2 (diff)
downloadcpython-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.py4
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",