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

Change subject: Tests: Skip CharsetTestCase.test_invalid_charset test for 
GraalPy
......................................................................

Tests: Skip CharsetTestCase.test_invalid_charset test for GraalPy

Bug: T414220
Change-Id: I99667148661d59b90a8cb5c558a0a63588ecf29c
---
M tests/http_tests.py
1 file changed, 4 insertions(+), 4 deletions(-)

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




diff --git a/tests/http_tests.py b/tests/http_tests.py
index ad86603..63fe428 100755
--- a/tests/http_tests.py
+++ b/tests/http_tests.py
@@ -435,6 +435,7 @@
         self.assertEqual(resp.content, CharsetTestCase.LATIN1_BYTES)
         self.assertEqual(resp.text, CharsetTestCase.STR)

+    @unittest.skipIf(python_implementation() == 'GraalVM', reason='T414220')
     def test_invalid_charset(self) -> None:
         """Test decoding with different and invalid charsets."""
         invalid_charsets = ('utf16', 'win-1251')
@@ -449,10 +450,9 @@
                 self.assertEqual(resp.content, CharsetTestCase.LATIN1_BYTES)

                 # test Response.apparent_encoding
-                if python_implementation() != 'GraalVM':  # T414220
-                    self.assertEqual(resp.text, str(resp.content,
-                                                    resp.apparent_encoding,
-                                                    errors='replace'))
+                self.assertEqual(resp.text, str(resp.content,
+                                                resp.apparent_encoding,
+                                                errors='replace'))

     def test_get_charset_from_content_type(self) -> None:
         """Test get_charset_from_content_type function."""

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