diff --git a/Lib/test/test_pyrepl/test_windows_console.py b/Lib/test/test_pyrepl/test_windows_console.py index 60392e231508b6..e52a54d31fb5d8 100644 --- a/Lib/test/test_pyrepl/test_windows_console.py +++ b/Lib/test/test_pyrepl/test_windows_console.py @@ -1,7 +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 @@ -23,7 +27,6 @@ pass -@unittest.skipIf(sys.platform != "win32", "Test class specifically for Windows") class WindowsConsoleTests(TestCase): def console(self, events, **kwargs) -> Console: console = WindowsConsole()