summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/test/test_array.py8
1 files changed, 8 insertions, 0 deletions
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)