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
cb17a465
Kaydet (Commit)
cb17a465
authored
Ara 12, 1996
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Print final report, either all tests OK, or list of failed and missing
tests.
üst
1c92eba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
autotest.py
Lib/test/autotest.py
+19
-5
No files found.
Lib/test/autotest.py
Dosyayı görüntüle @
cb17a465
...
@@ -46,6 +46,7 @@ from test_support import *
...
@@ -46,6 +46,7 @@ from test_support import *
# Exception raised when the test failed (not the same as in test_support)
# Exception raised when the test failed (not the same as in test_support)
TestFailed
=
'autotest.TestFailed'
TestFailed
=
'autotest.TestFailed'
TestMissing
=
'autotest.TestMissing'
# defaults
# defaults
generate
=
0
generate
=
0
...
@@ -96,8 +97,7 @@ def do_one_test(t, outdir):
...
@@ -96,8 +97,7 @@ def do_one_test(t, outdir):
try
:
try
:
fake_stdout
=
Compare
(
filename
)
fake_stdout
=
Compare
(
filename
)
except
IOError
:
except
IOError
:
print
'Could not find output file for test:'
,
t
raise
TestMissing
return
try
:
try
:
sys
.
stdout
=
fake_stdout
sys
.
stdout
=
fake_stdout
print
t
print
t
...
@@ -139,12 +139,26 @@ def main():
...
@@ -139,12 +139,26 @@ def main():
else
:
else
:
import
testall
import
testall
tests
=
testall
.
tests
tests
=
testall
.
tests
failed
=
[]
missing
=
[]
for
test
in
tests
:
for
test
in
tests
:
try
:
try
:
do_one_test
(
test
,
outdir
)
do_one_test
(
test
,
outdir
)
except
TestFailed
,
msg
:
except
TestFailed
,
msg
:
print
'Failure of test:'
,
test
traceback
.
print_exc
()
traceback
.
print_exc
()
print
'All tests OK.'
failed
.
append
(
test
)
except
TestMissing
:
missing
.
append
(
test
)
print
'**********
\n
* Report *
\n
**********'
if
not
failed
and
not
missing
:
print
'All tests OK.'
if
failed
:
print
'Failed tests:'
for
t
in
failed
:
print
' '
,
t
if
missing
:
print
'Missing tests:'
for
t
in
missing
:
print
' '
,
t
main
()
main
()
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