Skip to content

Commit 15cb9a8

Browse files
committed
Add proper Windows-specific unittest decorator
1 parent 850a357 commit 15cb9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_getpass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def test_falls_back_to_stdin(self):
168168
except ImportError:
169169
msvcrt_available = False
170170

171+
@unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
171172
@unittest.skipUnless(msvcrt_available, 'tests require system with msvcrt (Windows)')
172173
class WinGetpassTest(unittest.TestCase):
173174

0 commit comments

Comments
 (0)