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 "