Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323810?usp=email )

Change subject: tests: do not run execute_pwb on GraalPy with coverage enabled
......................................................................

tests: do not run execute_pwb on GraalPy with coverage enabled

Bug: T434391
Change-Id: I4c78d03ebb303ea0992937b003f0e5ecf78ca298
---
M tests/utils.py
1 file changed, 5 insertions(+), 1 deletion(-)

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




diff --git a/tests/utils.py b/tests/utils.py
index e3a328a..532bba9 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -15,6 +15,7 @@
 from collections.abc import Sequence
 from contextlib import contextmanager, suppress
 from pathlib import Path
+from platform import python_implementation
 from subprocess import PIPE, Popen, TimeoutExpired
 from typing import NoReturn, TypedDict

@@ -576,7 +577,10 @@
     """
     tmp_path: Path | None = None
     command = [sys.executable]
-    use_coverage = os.environ.get('GITHUB_ACTIONS')
+    use_coverage = (
+        os.environ.get('GITHUB_ACTIONS')
+        and python_implementation() != 'GraalVM'
+    )

     if use_coverage:
         # Test running and coverage is installed,

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