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
1d7c8c9a
Kaydet (Commit)
1d7c8c9a
authored
Eyl 13, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19013: add unittest.main() epilogs to unittest's own test modules
üst
87456e53
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
0 deletions
+29
-0
test_assertions.py
Lib/unittest/test/test_assertions.py
+4
-0
test_break.py
Lib/unittest/test/test_break.py
+4
-0
test_case.py
Lib/unittest/test/test_case.py
+4
-0
test_functiontestcase.py
Lib/unittest/test/test_functiontestcase.py
+4
-0
test_loader.py
Lib/unittest/test/test_loader.py
+4
-0
test_runner.py
Lib/unittest/test/test_runner.py
+4
-0
test_setups.py
Lib/unittest/test/test_setups.py
+1
-0
test_skipping.py
Lib/unittest/test/test_skipping.py
+4
-0
No files found.
Lib/unittest/test/test_assertions.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -361,3 +361,7 @@ class TestLongMessage(unittest.TestCase):
[
'^"regex" does not match "foo"$'
,
'^oops$'
,
'^"regex" does not match "foo"$'
,
'^"regex" does not match "foo" : oops$'
])
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_break.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -282,3 +282,7 @@ class TestBreakSignalIgnored(TestBreak):
"if threads have been used"
)
class
TestBreakSignalDefault
(
TestBreak
):
int_handler
=
signal
.
SIG_DFL
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_case.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -1405,3 +1405,7 @@ test case
with
support
.
disable_gc
():
del
case
self
.
assertFalse
(
wr
())
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_functiontestcase.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -142,3 +142,7 @@ class Test_FunctionTestCase(unittest.TestCase):
test
=
unittest
.
FunctionTestCase
(
lambda
:
None
,
description
=
desc
)
self
.
assertEqual
(
test
.
shortDescription
(),
"this tests foo"
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_loader.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -1306,3 +1306,7 @@ class Test_TestLoader(unittest.TestCase):
def
test_suiteClass__default_value
(
self
):
loader
=
unittest
.
TestLoader
()
self
.
assertTrue
(
loader
.
suiteClass
is
unittest
.
TestSuite
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_runner.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -339,3 +339,7 @@ class Test_TextTestRunner(unittest.TestCase):
f
=
io
.
StringIO
()
runner
=
unittest
.
TextTestRunner
(
f
)
self
.
assertTrue
(
runner
.
stream
.
stream
is
f
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Lib/unittest/test/test_setups.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -501,5 +501,6 @@ class TestSetups(unittest.TestCase):
with
self
.
assertRaisesRegex
(
Exception
,
msg
):
suite
.
debug
()
if
__name__
==
'__main__'
:
unittest
.
main
()
Lib/unittest/test/test_skipping.py
Dosyayı görüntüle @
1d7c8c9a
...
...
@@ -221,3 +221,7 @@ class Test_TestSkipping(unittest.TestCase):
suite
=
unittest
.
TestSuite
([
test
])
suite
.
run
(
result
)
self
.
assertEqual
(
result
.
skipped
,
[(
test
,
"testing"
)])
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