[Python-checkins] r79866 - python/trunk/Lib/test/test_select.py
benjamin.peterson
python-checkins at python.org
Tue Apr 6 23:37:06 CEST 2010
Author: benjamin.peterson
Date: Tue Apr 6 23:37:06 2010
New Revision: 79866
Log:
use skip decorator
Modified:
python/trunk/Lib/test/test_select.py
Modified: python/trunk/Lib/test/test_select.py
==============================================================================
--- python/trunk/Lib/test/test_select.py (original)
+++ python/trunk/Lib/test/test_select.py Tue Apr 6 23:37:06 2010
@@ -4,6 +4,8 @@
import os
import sys
+ at 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 @@
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:
More information about the Python-checkins
mailing list