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
6f17deb9
Commit
6f17deb9
authored
Jan 08, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
(Merge 3.3) Issue #20113: Fix test_posix on OpenIndiana
parents
149e540a
cd5ca6a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
Lib/test/test_posix.py
Lib/test/test_posix.py
+16
-2
No files found.
Lib/test/test_posix.py
View file @
6f17deb9
...
...
@@ -290,7 +290,14 @@ class PosixTester(unittest.TestCase):
self
.
assertEqual
(
b'test1tt2t3'
,
posix
.
read
(
fd
,
10
))
# Issue #20113: empty list of buffers should not crash
self
.
assertEqual
(
posix
.
writev
(
fd
,
[]),
0
)
try
:
size
=
posix
.
writev
(
fd
,
[])
except
OSError
:
# writev(fd, []) raises OSError(22, "Invalid argument")
# on OpenIndiana
pass
else
:
self
.
assertEqual
(
size
,
0
)
finally
:
os
.
close
(
fd
)
...
...
@@ -305,7 +312,14 @@ class PosixTester(unittest.TestCase):
self
.
assertEqual
([
b'test1'
,
b'tt2'
,
b't3'
],
[
bytes
(
i
)
for
i
in
buf
])
# Issue #20113: empty list of buffers should not crash
self
.
assertEqual
(
posix
.
readv
(
fd
,
[]),
0
)
try
:
size
=
posix
.
readv
(
fd
,
[])
except
OSError
:
# readv(fd, []) raises OSError(22, "Invalid argument")
# on OpenIndiana
pass
else
:
self
.
assertEqual
(
size
,
0
)
finally
:
os
.
close
(
fd
)
...
...
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