Skip to content

Commit

Permalink
gh-106162: array: suppress warning in test_array (#106404)
Browse files Browse the repository at this point in the history
array: suppress warning in test_array
  • Loading branch information
methane committed Jul 4, 2023
1 parent aa85c93 commit 8a4bba8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8a4bba8

Please sign in to comment.