]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106162: fix test_array modifies warning filter (#106181)
authorInada Naoki <songofacandy@gmail.com>
Wed, 28 Jun 2023 07:50:36 +0000 (16:50 +0900)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 07:50:36 +0000 (16:50 +0900)
Lib/test/test_array.py

index f6bf9e6c5ea871cf9efe89d09fd04c989773d48c..bec3766b87b2029073c3f2a8ee113fb14b7b49a4 100755 (executable)
@@ -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 "