https://github.com/python/cpython/commit/ac35d9621ba1defdc950ffc188a423ae840368ad
commit: ac35d9621ba1defdc950ffc188a423ae840368ad
branch: 3.13
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-01T21:21:13Z
summary:
[3.13] gh-111201: Skip pyrepl Windows tests earlier (#119848) (#119924)
gh-111201: Skip pyrepl Windows tests earlier (#119848)
Don't attempt to load pyrepl Windows console if platforms others than
Windows. For example, the import can fail if ctypes is missing.
(cherry picked from commit 91601a55964fdb3c02b21fa3c8dc629daff2390f)
files:
M Lib/test/test_pyrepl/test_windows_console.py
diff --git a/Lib/test/test_pyrepl/test_windows_console.py
b/Lib/test/test_pyrepl/test_windows_console.py
index 0b9014279a6f6d..e52a54d31fb5d8 100644
--- a/Lib/test/test_pyrepl/test_windows_console.py
+++ b/Lib/test/test_pyrepl/test_windows_console.py
@@ -1,6 +1,11 @@
-import itertools
import sys
import unittest
+
+if sys.platform != 'win32':
+ raise unittest.SkipTest("test only relevant on win32")
+
+
+import itertools
from functools import partial
from typing import Iterable
from unittest import TestCase
@@ -22,7 +27,6 @@
pass
[email protected](sys.platform != "win32", "Test class specifically for
Windows")
class WindowsConsoleTests(TestCase):
def console(self, events, **kwargs) -> Console:
console = WindowsConsole()
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]