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
fedd4815
Kaydet (Commit)
fedd4815
authored
Eyl 19, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try to make signal-sending tests in test_subprocess more robust on slow machines
üst
fb8db8f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test_subprocess.py
Lib/test/test_subprocess.py
+4
-2
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
fedd4815
...
...
@@ -830,16 +830,18 @@ class POSIXProcessTestCase(BaseTestCase):
stdin
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
# Let the process initialize (Issue #3137)
time
.
sleep
(
0.
1
)
time
.
sleep
(
0.
4
)
# The process should not terminate prematurely
self
.
assertIsNone
(
p
.
poll
())
# Retry if the process do not receive the signal.
count
,
maxcount
=
0
,
3
count
,
maxcount
=
0
,
10
while
count
<
maxcount
and
p
.
poll
()
is
None
:
getattr
(
p
,
method
)(
*
args
)
time
.
sleep
(
0.1
)
count
+=
1
if
count
==
maxcount
:
self
.
skipTest
(
"apparently failed to send the signal"
)
self
.
assertIsNotNone
(
p
.
poll
(),
"the subprocess did not terminate"
)
if
count
>
1
:
print
(
"p.{}{} succeeded after "
...
...
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