Skip to content

Commit 90f31b3

Browse files
committed
gh-111201: Skip pyperl Windows tests earlier
Don't attempt to load pyperl Windows console if platforms others than Windows. For example, the import can fail if ctypes is missing.
1 parent b9965ef commit 90f31b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Lib/test/test_pyrepl/test_windows_console.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import itertools
21
import sys
32
import unittest
3+
4+
if sys.platform != 'win32':
5+
raise unittest.SkipTest("test only relevant on win32")
6+
7+
8+
import itertools
49
from _pyrepl.console import Event, Console
510
from _pyrepl.windows_console import (
611
MOVE_LEFT,

0 commit comments

Comments
 (0)