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
5657ff8a
Kaydet (Commit)
5657ff8a
authored
Ara 19, 2010
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improvement to fix for issue 9926 to allow TestResult to be reused.
üst
62a1aaee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
suite.py
Lib/unittest/suite.py
+1
-0
test_suite.py
Lib/unittest/test/test_suite.py
+5
-1
No files found.
Lib/unittest/suite.py
Dosyayı görüntüle @
5657ff8a
...
...
@@ -107,6 +107,7 @@ class TestSuite(BaseTestSuite):
if
topLevel
:
self
.
_tearDownPreviousClass
(
None
,
result
)
self
.
_handleModuleTearDown
(
result
)
result
.
_testRunEntered
=
False
return
result
def
debug
(
self
):
...
...
Lib/unittest/test/test_suite.py
Dosyayı görüntüle @
5657ff8a
...
...
@@ -353,11 +353,15 @@ class Test_TestSuite(unittest.TestCase, TestEquality):
unittest
.
TestSuite
.
__call__
(
self
,
*
args
,
**
kw
)
suite
=
MySuite
()
result
=
unittest
.
TestResult
()
wrapper
=
unittest
.
TestSuite
()
wrapper
.
addTest
(
suite
)
wrapper
(
unittest
.
TestResult
()
)
wrapper
(
result
)
self
.
assertTrue
(
suite
.
called
)
# reusing results should be permitted even if abominable
self
.
assertFalse
(
result
.
_testRunEntered
)
if
__name__
==
'__main__'
:
unittest
.
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