gh-106162: array: suppress warning in test_array (#106404)

array: suppress warning in test_array
This commit is contained in:
Inada Naoki 2023-07-05 02:02:49 +09:00 committed by GitHub
parent aa85c93792
commit 8a4bba8b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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)