From 8a4bba8b9764ba28667b137fe62c11aea672f500 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 5 Jul 2023 02:02:49 +0900 Subject: gh-106162: array: suppress warning in test_array (#106404) array: suppress warning in test_array --- Lib/test/test_array.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index bec3766..a219fa3 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -215,6 +215,14 @@ class BaseTest: # outside: An entry that is not in example # minitemsize: the minimum guaranteed itemsize + def setUp(self): + self.enterContext(warnings.catch_warnings()) + warnings.filterwarnings( + "ignore", + message="The 'u' type code is deprecated and " + "will be removed in Python 3.16", + category=DeprecationWarning) + def assertEntryEqual(self, entry1, entry2): self.assertEqual(entry1, entry2) -- cgit v0.12