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
29650116
Kaydet (Commit)
29650116
authored
Agu 08, 2012
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
regrtest: give more information when a child process fails with an error
different than KeyboardInterrupt
üst
bded28c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
regrtest.py
Lib/test/regrtest.py
+5
-3
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
29650116
...
@@ -440,8 +440,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
...
@@ -440,8 +440,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
args
,
kwargs
=
json
.
loads
(
a
)
args
,
kwargs
=
json
.
loads
(
a
)
try
:
try
:
result
=
runtest
(
*
args
,
**
kwargs
)
result
=
runtest
(
*
args
,
**
kwargs
)
except
KeyboardInterrupt
:
result
=
INTERRUPTED
,
''
except
BaseException
as
e
:
except
BaseException
as
e
:
result
=
INTERRUPTED
,
e
.
__class__
.
__name__
traceback
.
print_exc
()
result
=
CHILD_ERROR
,
str
(
e
)
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
print
()
# Force a newline (just in case)
print
()
# Force a newline (just in case)
print
(
json
.
dumps
(
result
))
print
(
json
.
dumps
(
result
))
...
@@ -684,8 +687,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
...
@@ -684,8 +687,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
sys
.
stderr
.
flush
()
sys
.
stderr
.
flush
()
if
result
[
0
]
==
INTERRUPTED
:
if
result
[
0
]
==
INTERRUPTED
:
assert
result
[
1
]
==
'KeyboardInterrupt'
raise
KeyboardInterrupt
raise
KeyboardInterrupt
# What else?
if
result
[
0
]
==
CHILD_ERROR
:
if
result
[
0
]
==
CHILD_ERROR
:
raise
Exception
(
"Child error on {}: {}"
.
format
(
test
,
result
[
1
]))
raise
Exception
(
"Child error on {}: {}"
.
format
(
test
,
result
[
1
]))
test_index
+=
1
test_index
+=
1
...
...
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