mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
use skip decorator
This commit is contained in:
parent
fb12044392
commit
22c62dd345
1 changed files with 2 additions and 4 deletions
|
@ -4,6 +4,8 @@ import select
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform[:3] in ('win', 'mac', 'os2', 'riscos'),
|
||||||
|
"can't easily test on this system")
|
||||||
class SelectTestCase(unittest.TestCase):
|
class SelectTestCase(unittest.TestCase):
|
||||||
|
|
||||||
class Nope:
|
class Nope:
|
||||||
|
@ -20,10 +22,6 @@ class SelectTestCase(unittest.TestCase):
|
||||||
self.assertRaises(TypeError, select.select, [], [], [], "not a number")
|
self.assertRaises(TypeError, select.select, [], [], [], "not a number")
|
||||||
|
|
||||||
def test_select(self):
|
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'
|
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')
|
p = os.popen(cmd, 'r')
|
||||||
for tout in (0, 1, 2, 4, 8, 16) + (None,)*10:
|
for tout in (0, 1, 2, 4, 8, 16) + (None,)*10:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue