jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1085931?usp=email )

Change subject: Replace unnecessary escape sequences
......................................................................

Replace unnecessary escape sequences

Change-Id: Ieee852169e3e4cbf5446a01f05bea7c435d99aa4
---
M tests/mediawikiversion_tests.py
M tests/time_tests.py
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/mediawikiversion_tests.py b/tests/mediawikiversion_tests.py
index f5c2f15..f85e440 100755
--- a/tests/mediawikiversion_tests.py
+++ b/tests/mediawikiversion_tests.py
@@ -97,7 +97,7 @@
             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):
diff --git a/tests/time_tests.py b/tests/time_tests.py
index 3deaf37..c317c7c 100755
--- a/tests/time_tests.py
+++ b/tests/time_tests.py
@@ -119,7 +119,7 @@
     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)

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1085931?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ieee852169e3e4cbf5446a01f05bea7c435d99aa4
Gerrit-Change-Number: 1085931
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to