Skip to content

Commit

Permalink
pythongh-80480: Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 14, 2022
1 parent 7b020ce commit 19ed73c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,12 +1217,8 @@ def test_issue17223(self):
self.assertRaises(ValueError, str, a)

def test_typecode_u_deprecation(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always", DeprecationWarning)
with self.assertWarns(DeprecationWarning):
array.array("u")
self.assertGreaterEqual(len(w), 1)
for warning in w:
self.assertIs(warning.category, DeprecationWarning)


class NumberTest(BaseTest):
Expand Down

0 comments on commit 19ed73c

Please sign in to comment.