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

Change subject: [test] fix message of TestReplacementsMain.test_pairs_file for 
pypy3.7
......................................................................

[test] fix message of TestReplacementsMain.test_pairs_file for pypy3.7

Bug: T379074
Change-Id: I8121dce147507bffc043ac3f51936786d37efb47
---
M tests/replacebot_tests.py
1 file changed, 4 insertions(+), 2 deletions(-)

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




diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py
index 4b22ed1..193c952 100755
--- a/tests/replacebot_tests.py
+++ b/tests/replacebot_tests.py
@@ -307,8 +307,10 @@
         """Test handle_pairsfile."""
         result = replace.handle_pairsfile('non existing file')
         self.assertIsNone(result)
-        self.assertIn("No such file or directory: 'non existing file'",
-                      pywikibot.bot.ui.pop_output()[0])
+
+        msg = pywikibot.bot.ui.pop_output()[0]
+        self.assertIn('No such file or directory:', msg)
+        self.assertIn('non existing file', msg)

         result = replace.handle_pairsfile('tests/data/pagelist-lines.txt')
         self.assertIsNone(result)

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1087466?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: I8121dce147507bffc043ac3f51936786d37efb47
Gerrit-Change-Number: 1087466
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to