jenkins-bot submitted this change.
[bugfix] Decorate test_other_wiki_prefix with expectedFailure
Decorate TestForeignInterwikiLinks.test_other_wiki_prefix with
unittest.expectedFailure to skip failing tests temporary and
let tests pass.
Bug: T309442
Change-Id: I6d1a915b566fb35a8bf08935b569a7cba7394f1a
---
M tests/link_tests.py
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/link_tests.py b/tests/link_tests.py
index cbb0cd0..94600f3 100755
--- a/tests/link_tests.py
+++ b/tests/link_tests.py
@@ -6,6 +6,7 @@
# Distributed under the terms of the MIT license.
#
import re
+import unittest
from contextlib import suppress
import pywikibot
@@ -18,7 +19,6 @@
DefaultDrySiteTestCase,
TestCase,
WikimediaDefaultSiteTestCase,
- unittest,
)
@@ -903,6 +903,7 @@
self.assertEqual(link.site.sitename, 'wikimedia:wikimedia')
self.assertTrue(link._is_interwiki)
+ @unittest.expectedFailure # T309442
def test_other_wiki_prefix(self):
"""Test that Link fails if the interwiki prefix is a unknown family."""
link = Link('bulba:title on auto-generated Site', source=self.site)
To view, visit change 800853. To unsubscribe, or for help writing mail filters, visit settings.