Skip to content

Commit a3dd8cc

Browse files
authored
gh-106162: fix test_array modifies warning filter (#106181)
1 parent 541a10f commit a3dd8cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_array.py

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_empty(self):
100100
class ArrayReconstructorTest(unittest.TestCase):
101101

102102
def setUp(self):
103+
self.enterContext(warnings.catch_warnings())
103104
warnings.filterwarnings(
104105
"ignore",
105106
message="The 'u' type code is deprecated and "

0 commit comments

Comments
 (0)