gh-106162: fix test_array modifies warning filter (#106181)

This commit is contained in:
Inada Naoki 2023-06-28 16:50:36 +09:00 committed by GitHub
parent 541a10f9ed
commit a3dd8cce58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,7 @@ UTF32_BE = 21
class ArrayReconstructorTest(unittest.TestCase):
def setUp(self):
self.enterContext(warnings.catch_warnings())
warnings.filterwarnings(
"ignore",
message="The 'u' type code is deprecated and "