Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb58e4a

Browse filesBrowse files
vstinnerestyxx
authored andcommitted
pythongh-111201: Skip pyrepl Windows tests earlier (python#119848)
Don't attempt to load pyrepl Windows console if platforms others than Windows. For example, the import can fail if ctypes is missing.
1 parent a53cd5c commit bb58e4a
Copy full SHA for bb58e4a

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎Lib/test/test_pyrepl/test_windows_console.py

Copy file name to clipboardExpand all lines: Lib/test/test_pyrepl/test_windows_console.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
import itertools
21
import sys
32
import unittest
43

4+
if sys.platform != 'win32':
5+
raise unittest.SkipTest("test only relevant on win32")
6+
7+
8+
import itertools
59
from functools import partial
610
from typing import Iterable
711
from unittest import TestCase
@@ -23,7 +27,6 @@
2327
pass
2428

2529

26-
@unittest.skipIf(sys.platform != "win32", "Test class specifically for Windows")
2730
class WindowsConsoleTests(TestCase):
2831
def console(self, events, **kwargs) -> Console:
2932
console = WindowsConsole()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.