mirror of https://github.com/python/cpython
gh-106162: array: suppress warning in test_array (#106404)
array: suppress warning in test_array
This commit is contained in:
parent
aa85c93792
commit
8a4bba8b97
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue