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
8d61db5a
Commit
8d61db5a
authored
Apr 16, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
parent
03c566a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
Lib/test/test_pty.py
Lib/test/test_pty.py
+0
-18
No files found.
Lib/test/test_pty.py
View file @
8d61db5a
...
...
@@ -115,24 +115,6 @@ if pid == pty.CHILD:
os
.
_exit
(
4
)
else
:
debug
(
"Waiting for child (%d) to finish."
%
pid
)
# In verbose mode, we have to consume the debug output from the child or
# the child will block, causing this test to hang in the parent's
# waitpid() call. The child blocks after a platform-dependent amount of
# data is written to its fd. On Linux 2.6, it's 4000 bytes and the child
# won't block, but on OS X even the small writes in the child above will
# block it. Also on Linux, the read() will throw an OSError (input/output
# error) when it tries to read past the end of the buffer but the child's
# already exited, so catch and discard those exceptions. It's not worth
# checking for EIO.
while
True
:
try
:
data
=
os
.
read
(
master_fd
,
80
)
except
OSError
:
break
if
not
data
:
break
sys
.
stdout
.
write
(
data
.
replace
(
'
\
r
\
n
'
,
'
\
n
'
))
##line = os.read(master_fd, 80)
##lines = line.replace('\r\n', '\n').split('\n')
##if False and lines != ['In child, calling os.setsid()',
...
...
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