From 4a0694d23578559cefb49c92ba4107e9997e93ca Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 14 May 1997 19:06:36 +0000 Subject: [PATCH] Fix sys.platform test -- on Win, it is 'win32', not 'win'. --- Lib/test/test_select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index 32ccfd16fe..85bfa419da 100644 --- a/Lib/test/test_select.py +++ b/Lib/test/test_select.py @@ -35,9 +35,9 @@ else: def test(): import sys - if sys.platform in ('win', 'mac'): + if sys.platform[:3] in ('win', 'mac'): if verbose: - print "Can't test select easily" + print "Can't test select easily on", sys.platform return cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done' p = os.popen(cmd, 'r') -- 2.50.0