Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8d61db5a
Kaydet (Commit)
8d61db5a
authored
Nis 16, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
üst
03c566a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
test_pty.py
Lib/test/test_pty.py
+0
-18
No files found.
Lib/test/test_pty.py
Dosyayı görüntüle @
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