Skip to content

Commit 8a4bba8

Browse files
authored
gh-106162: array: suppress warning in test_array (#106404)
array: suppress warning in test_array
1 parent aa85c93 commit 8a4bba8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Lib/test/test_array.py

+8
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,14 @@ class BaseTest:
215215
# outside: An entry that is not in example
216216
# minitemsize: the minimum guaranteed itemsize
217217

218+
def setUp(self):
219+
self.enterContext(warnings.catch_warnings())
220+
warnings.filterwarnings(
221+
"ignore",
222+
message="The 'u' type code is deprecated and "
223+
"will be removed in Python 3.16",
224+
category=DeprecationWarning)
225+
218226
def assertEntryEqual(self, entry1, entry2):
219227
self.assertEqual(entry1, entry2)
220228

0 commit comments

Comments
 (0)