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
f810767b
Commit
f810767b
authored
Mar 31, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #22854: Merge Windows pipe skipping from 3.5
parents
c0aab1da
0950e6ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Lib/test/test_io.py
Lib/test/test_io.py
+7
-7
No files found.
Lib/test/test_io.py
View file @
f810767b
...
...
@@ -424,13 +424,6 @@ class IOTest(unittest.TestCase):
self
.
assertEqual
(
obj
.
readable
(),
readable
)
writable
=
"w"
in
abilities
self
.
assertEqual
(
obj
.
writable
(),
writable
)
seekable
=
"s"
in
abilities
# Detection of pipes being non-seekable does not seem to work
# on Windows
if
not
sys
.
platform
.
startswith
(
"win"
)
or
test
not
in
(
pipe_reader
,
pipe_writer
):
self
.
assertEqual
(
obj
.
seekable
(),
seekable
)
if
isinstance
(
obj
,
self
.
TextIOBase
):
data
=
"3"
...
...
@@ -456,6 +449,13 @@ class IOTest(unittest.TestCase):
else
:
self
.
assertRaises
(
OSError
,
obj
.
write
,
data
)
if
sys
.
platform
.
startswith
(
"win"
)
or
test
in
(
pipe_reader
,
pipe_writer
):
# Pipes seem to appear as seekable on Windows
continue
seekable
=
"s"
in
abilities
self
.
assertEqual
(
obj
.
seekable
(),
seekable
)
if
seekable
:
obj
.
tell
()
obj
.
seek
(
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