summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2023-07-04 17:02:49 (GMT)
committerGitHub <noreply@github.com>2023-07-04 17:02:49 (GMT)
commit8a4bba8b9764ba28667b137fe62c11aea672f500 (patch)
tree89a51c046e59dd1f4fcf7b0e8c88932358f353c6 /Lib/test
parentaa85c93792876a602fc9ce2083b64958507d29bf (diff)
downloadcpython-8a4bba8b9764ba28667b137fe62c11aea672f500.zip
cpython-8a4bba8b9764ba28667b137fe62c11aea672f500.tar.gz
cpython-8a4bba8b9764ba28667b137fe62c11aea672f500.tar.bz2
gh-106162: array: suppress warning in test_array (#106404)
array: suppress warning in test_array
Diffstat (limited to 'Lib/test')
-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)