wolever / parameterized

Parameterized testing with any Python test framework
Other
833 stars 105 forks source link

Fix unittest warning #162

Open adamchainz opened 1 year ago

adamchainz commented 1 year ago

Fix this warning:

/.../parameterized/test.py:38: DeprecationWarning: Please use assertRaisesRegex instead.
  with self.assertRaisesRegexp(expected_exception, expected_regexp):

The version ending “p” was deprecated in Python 3.2 and will be removed in 3.12: https://docs.python.org/dev/whatsnew/3.12.html#removed .