From b59e87b70b15c36f527e7c707f731ef0ea806ee1 Mon Sep 17 00:00:00 2001 From: xqt Date: Tue, 5 Nov 2024 15:17:19 +0100 Subject: [PATCH] [test] fix message of TestReplacementsMain.test_pairs_file for pypy3.7 Bug: T379074 Change-Id: I8121dce147507bffc043ac3f51936786d37efb47 --- tests/replacebot_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py index 4b22ed1610..193c952af7 100755 --- a/tests/replacebot_tests.py +++ b/tests/replacebot_tests.py @@ -307,8 +307,10 @@ def test_pairs_file(self): """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)