diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:37:06 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:37:06 (GMT) |
commit | 22c62dd345da5668a8adc86196569ce5df5d2831 (patch) | |
tree | 841d7b2fd712545121f5089bf144efba9bdf6d52 | |
parent | fb12044392a255a7aad5fb913e43afeb81a67a78 (diff) | |
download | cpython-22c62dd345da5668a8adc86196569ce5df5d2831.zip cpython-22c62dd345da5668a8adc86196569ce5df5d2831.tar.gz cpython-22c62dd345da5668a8adc86196569ce5df5d2831.tar.bz2 |
use skip decorator
-rw-r--r-- | Lib/test/test_select.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index 52805e6..fd7c8d0 100644 --- a/Lib/test/test_select.py +++ b/Lib/test/test_select.py @@ -4,6 +4,8 @@ import select import os import sys +@unittest.skipIf(sys.platform[:3] in ('win', 'mac', 'os2', 'riscos'), + "can't easily test on this system") class SelectTestCase(unittest.TestCase): class Nope: @@ -20,10 +22,6 @@ class SelectTestCase(unittest.TestCase): self.assertRaises(TypeError, select.select, [], [], [], "not a number") def test_select(self): - if sys.platform[:3] in ('win', 'mac', 'os2', 'riscos'): - if test_support.verbose: - 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') for tout in (0, 1, 2, 4, 8, 16) + (None,)*10: |