Skip to content

Commit

Permalink
gh-111201: Skip pyrepl Windows tests earlier
Browse files Browse the repository at this point in the history
Don't attempt to load pyrepl Windows console if platforms others than
Windows. For example, the import can fail if ctypes is missing.
  • Loading branch information
vstinner committed May 31, 2024
1 parent b9965ef commit 5649aa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Lib/test/test_pyrepl/test_windows_console.py
Original file line number Diff line number Diff line change
@@ -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 _pyrepl.console import Event, Console
from _pyrepl.windows_console import (
MOVE_LEFT,
Expand Down

0 comments on commit 5649aa9

Please sign in to comment.