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

Change subject: tests: Skip several proofreadpage_tests for GraalPy 23.1
......................................................................

tests: Skip several proofreadpage_tests for GraalPy 23.1

Bug: T435718
Change-Id: Ie2526bca89aee8e256bdc4852fa600fe532ccc6a
---
M tests/proofreadpage_tests.py
1 file changed, 17 insertions(+), 0 deletions(-)

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




diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py
index 4830fa5..b8434d3 100755
--- a/tests/proofreadpage_tests.py
+++ b/tests/proofreadpage_tests.py
@@ -11,6 +11,7 @@
 import json
 import unittest
 from contextlib import suppress
+from platform import python_implementation

 import pywikibot
 from pywikibot.data import api
@@ -21,6 +22,7 @@
     ProofreadPage,
     TagAttr,
 )
+from pywikibot.tools import PYTHON_VERSION
 from tests.aspects import TestCase, require_modules
 from tests.basepage import (
     BasePageLoadRevisionsCachingTestBase,
@@ -28,6 +30,9 @@
 )


+PYTHON_310 = PYTHON_VERSION[:2] == (3, 10)
+
+
 class TestPagesTagParser(TestCase):

     """Test TagAttr class."""
@@ -726,6 +731,10 @@
             references='<references/>', div_end=div)


[email protected](
+    python_implementation() == 'GraalVM' and PYTHON_310,
+    'Fails with GraalPy 23.1 due to T435718'
+)
 class TestIndexPageMappings(BS4TestCase):

     """Test IndexPage class."""
@@ -917,12 +926,20 @@
         """Test index property with redlink."""
         self.assertEqual(self.missing.index, self.index)

+    @unittest.skipIf(
+        python_implementation() == 'GraalVM' and PYTHON_310,
+        'Fails with GraalPy 23.1 due to T435718'
+    )
     def test_get_page_and_number_redlink(self) -> None:
         """Test IndexPage page get_page_number functions with redlinks."""
         for page in self.pages:
             n = self.index.get_number(page)
             self.assertEqual(self.index.get_page(n), page)

+    @unittest.skipIf(
+        python_implementation() == 'GraalVM' and PYTHON_310,
+        'Fails with GraalPy 23.1 due to T435718'
+    )
     def test_page_gen_redlink(self) -> None:
         """Test Index page generator with redlinks."""
         # Check start/end limits.

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328351?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: Ie2526bca89aee8e256bdc4852fa600fe532ccc6a
Gerrit-Change-Number: 1328351
Gerrit-PatchSet: 3
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