Skip to content

Commit

Permalink
Use assertRegex instead of assertRegexpMatches for Python 3.11 compat…
Browse files Browse the repository at this point in the history
…ibility. (#104)
  • Loading branch information
tirkarthi committed Oct 15, 2021
1 parent 19e05d5 commit e3ef262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_checks.py
Expand Up @@ -22,13 +22,13 @@ def test_stdin(self):
stdout_lines = stdout.splitlines()
self.assertEqual(stderr, b'')
self.assertEqual(len(stdout_lines), 3)
self.assertRegexpMatches(
self.assertRegex(
stdout_lines[0],
b'stdin:1:(24|25): Q000 Double quotes found but single quotes preferred')
self.assertRegexpMatches(
self.assertRegex(
stdout_lines[1],
b'stdin:2:(24|25): Q000 Double quotes found but single quotes preferred')
self.assertRegexpMatches(
self.assertRegex(
stdout_lines[2],
b'stdin:3:(24|25): Q000 Double quotes found but single quotes preferred')

Expand Down

0 comments on commit e3ef262

Please sign in to comment.