Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a0694d

Browse files
committed
Fix sys.platform test -- on Win, it is 'win32', not 'win'.
1 parent 0ba7e59 commit 4a0694d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def fileno(self):
3535

3636
def test():
3737
import sys
38-
if sys.platform in ('win', 'mac'):
38+
if sys.platform[:3] in ('win', 'mac'):
3939
if verbose:
40-
print "Can't test select easily"
40+
print "Can't test select easily on", sys.platform
4141
return
4242
cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
4343
p = os.popen(cmd, 'r')

0 commit comments

Comments
 (0)