Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitb3a16bc

Browse files
committed
gh-111201: Skip pyrepl Windows tests earlier
Don't attempt to load pyrepl Windows console if platforms others thanWindows. For example, the import can fail if ctypes is missing.
1 parent4c387a7 commitb3a16bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Lib/test/test_pyrepl/test_windows_console.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
importitertools
21
importsys
32
importunittest
43

4+
ifsys.platform!='win32':
5+
raiseunittest.SkipTest("test only relevant on win32")
6+
7+
8+
importitertools
59
fromfunctoolsimportpartial
610
fromtypingimportIterable
711
fromunittestimportTestCase
@@ -23,7 +27,6 @@
2327
pass
2428

2529

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp