From a3dd8cce58fe2b27eea4eed572d086dc8a7e1bb8 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 28 Jun 2023 16:50:36 +0900 Subject: [PATCH] gh-106162: fix test_array modifies warning filter (#106181) --- Lib/test/test_array.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index f6bf9e6c5ea871..bec3766b87b202 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -100,6 +100,7 @@ def test_empty(self): class ArrayReconstructorTest(unittest.TestCase): def setUp(self): + self.enterContext(warnings.catch_warnings()) warnings.filterwarnings( "ignore", message="The 'u' type code is deprecated and "