Skip to content

Fix unittest warning#162

Open
adamchainz wants to merge 1 commit intowolever:masterfrom
adamchainz:fix_unittest_warning
Open

Fix unittest warning#162
adamchainz wants to merge 1 commit intowolever:masterfrom
adamchainz:fix_unittest_warning

Conversation

@adamchainz
Copy link
Copy Markdown
Contributor

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 .

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 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant