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
da9ac728
Kaydet (Commit)
da9ac728
authored
Mar 16, 2011
tarafından
Reid Kleckner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bump up the subprocess timeouts even more. :(
üst
2b228f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
test_subprocess.py
Lib/test/test_subprocess.py
+6
-4
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
da9ac728
...
...
@@ -130,7 +130,9 @@ class ProcessTestCase(BaseTestCase):
"import sys; sys.stdout.write('BDFL')
\n
"
"sys.stdout.flush()
\n
"
"while True: pass"
],
timeout
=
1.5
)
# Some heavily loaded buildbots (sparc Debian 3.x) require
# this much time to start and print.
timeout
=
3
)
self
.
fail
(
"Expected TimeoutExpired."
)
self
.
assertEqual
(
c
.
exception
.
output
,
b
'BDFL'
)
...
...
@@ -647,15 +649,15 @@ class ProcessTestCase(BaseTestCase):
# Subsequent invocations should just return the returncode
self
.
assertEqual
(
p
.
wait
(),
0
)
def
test_wait_timeout
(
self
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"import time; time.sleep(0.1)"
])
with
self
.
assertRaises
(
subprocess
.
TimeoutExpired
)
as
c
:
p
.
wait
(
timeout
=
0.01
)
self
.
assertIn
(
"0.01"
,
str
(
c
.
exception
))
# For coverage of __str__.
self
.
assertEqual
(
p
.
wait
(
timeout
=
2
),
0
)
# Some heavily loaded buildbots (sparc Debian 3.x) require this much
# time to start.
self
.
assertEqual
(
p
.
wait
(
timeout
=
3
),
0
)
def
test_invalid_bufsize
(
self
):
# an invalid type of the bufsize argument should raise
...
...
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