Skip to content

Commit

Permalink
Merge "Replace unnecessary escape sequences"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Nov 2, 2024
2 parents bddbb48 + aacff5c commit 5a6e5d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/mediawikiversion_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_invalid_versions(self):
MediaWikiVersion('1.missing')
with self.assertRaisesRegex(
AssertionError,
'Found \"wmf\" in \"wmf-1\"'):
'Found "wmf" in "wmf-1"'):
MediaWikiVersion('1.33wmf-1')

def test_generator(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/time_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_set_from_string_posix(self):
def test_set_from_string_invalid(self):
"""Test failure creating instance from invalid string."""
for timestr, _posix in self.test_results['INVALID']:
regex = "time data \'[^\']*?\' does not match"
regex = "time data '[^']*?' does not match"
with self.subTest(timestr), \
self.assertRaisesRegex(ValueError, regex):
Timestamp.set_timestamp(timestr)
Expand Down

0 comments on commit 5a6e5d6

Please sign in to comment.