summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
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",