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
d92ccb1f
Commit
d92ccb1f
authored
May 29, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test_pipe2 on Linux kernels older than 2.6.27.
parent
daafdd5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_posix.py
Lib/test/test_posix.py
+4
-0
No files found.
Lib/test/test_posix.py
View file @
d92ccb1f
...
...
@@ -480,6 +480,10 @@ class PosixTester(unittest.TestCase):
@
unittest
.
skipUnless
(
hasattr
(
os
,
'pipe2'
),
"test needs os.pipe2()"
)
def
test_pipe2
(
self
):
version
=
support
.
linux_version
()
if
sys
.
platform
==
'linux2'
and
version
<
(
2
,
6
,
27
):
self
.
skipTest
(
"Linux kernel 2.6.27 or higher required, "
"not %s.%s.%s"
%
version
)
self
.
assertRaises
(
TypeError
,
os
.
pipe2
,
'DEADBEEF'
)
self
.
assertRaises
(
TypeError
,
os
.
pipe2
,
0
,
0
)
...
...
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