Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
22c62dd3
Commit
22c62dd3
authored
Apr 06, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use skip decorator
parent
fb120443
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Lib/test/test_select.py
Lib/test/test_select.py
+2
-4
No files found.
Lib/test/test_select.py
View file @
22c62dd3
...
@@ -4,6 +4,8 @@ import select
...
@@ -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):
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment