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
bf2ad346
Kaydet (Commit)
bf2ad346
authored
Eyl 28, 2012
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Pass on parameters in unittest.TextTestResult.__init__ super call
üst
fb2e8a7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
runner.py
Lib/unittest/runner.py
+1
-1
test_runner.py
Lib/unittest/test/test_runner.py
+13
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/unittest/runner.py
Dosyayı görüntüle @
bf2ad346
...
@@ -34,7 +34,7 @@ class TextTestResult(result.TestResult):
...
@@ -34,7 +34,7 @@ class TextTestResult(result.TestResult):
separator2
=
'-'
*
70
separator2
=
'-'
*
70
def
__init__
(
self
,
stream
,
descriptions
,
verbosity
):
def
__init__
(
self
,
stream
,
descriptions
,
verbosity
):
super
(
TextTestResult
,
self
)
.
__init__
()
super
(
TextTestResult
,
self
)
.
__init__
(
stream
,
descriptions
,
verbosity
)
self
.
stream
=
stream
self
.
stream
=
stream
self
.
showAll
=
verbosity
>
1
self
.
showAll
=
verbosity
>
1
self
.
dots
=
verbosity
==
1
self
.
dots
=
verbosity
==
1
...
...
Lib/unittest/test/test_runner.py
Dosyayı görüntüle @
bf2ad346
...
@@ -149,6 +149,19 @@ class Test_TextTestRunner(unittest.TestCase):
...
@@ -149,6 +149,19 @@ class Test_TextTestRunner(unittest.TestCase):
self
.
assertEqual
(
runner
.
resultclass
,
unittest
.
TextTestResult
)
self
.
assertEqual
(
runner
.
resultclass
,
unittest
.
TextTestResult
)
def
test_multiple_inheritance
(
self
):
class
AResult
(
unittest
.
TestResult
):
def
__init__
(
self
,
stream
,
descriptions
,
verbosity
):
super
(
AResult
,
self
)
.
__init__
(
stream
,
descriptions
,
verbosity
)
class
ATextResult
(
unittest
.
TextTestResult
,
AResult
):
pass
# This used to raise an exception due to TextTestResult not passing
# on arguments in its __init__ super call
ATextResult
(
None
,
None
,
None
)
def
testBufferAndFailfast
(
self
):
def
testBufferAndFailfast
(
self
):
class
Test
(
unittest
.
TestCase
):
class
Test
(
unittest
.
TestCase
):
def
testFoo
(
self
):
def
testFoo
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
bf2ad346
...
@@ -107,6 +107,8 @@ Core and Builtins
...
@@ -107,6 +107,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #12376: Pass on parameters in TextTestResult.__init__ super call
- Issue #15222: Insert blank line after each message in mbox mailboxes
- Issue #15222: Insert blank line after each message in mbox mailboxes
- Issue #16013: Fix CSV Reader parsing issue with ending quote characters.
- Issue #16013: Fix CSV Reader parsing issue with ending quote characters.
...
...
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