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
5074df62
Kaydet (Commit)
5074df62
authored
Ara 03, 2010
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default
üst
1203720f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
unittest.rst
Doc/library/unittest.rst
+2
-2
case.py
Lib/unittest/case.py
+1
-1
test_assertions.py
Lib/unittest/test/test_assertions.py
+1
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
5074df62
...
...
@@ -1305,8 +1305,8 @@ Test cases
to ``True`` allows you to have a custom error message in addition to the
normal one.
This attribute defaults to ``
False``, meaning that a custom message passed
to an assert method will silence the normal message.
This attribute defaults to ``
True``. If set to False then a custom message
passed
to an assert method will silence the normal message.
The class setting can be overridden in individual tests by assigning an
instance attribute to ``True`` or ``False`` before calling the assert methods.
...
...
Lib/unittest/case.py
Dosyayı görüntüle @
5074df62
...
...
@@ -245,7 +245,7 @@ class TestCase(object):
# objects used in assert methods) will be printed on failure in *addition*
# to any explicit message passed.
longMessage
=
Fals
e
longMessage
=
Tru
e
# This attribute sets the maximum length of a diff in failure messages
# by assert methods using difflib. It is looked up as an instance attribute
...
...
Lib/unittest/test/test_assertions.py
Dosyayı görüntüle @
5074df62
...
...
@@ -127,7 +127,7 @@ class TestLongMessage(unittest.TestCase):
self
.
testableFalse
=
TestableTestFalse
(
'testTest'
)
def
testDefault
(
self
):
self
.
assert
Fals
e
(
unittest
.
TestCase
.
longMessage
)
self
.
assert
Tru
e
(
unittest
.
TestCase
.
longMessage
)
def
test_formatMsg
(
self
):
self
.
assertEqual
(
self
.
testableFalse
.
_formatMessage
(
None
,
"foo"
),
"foo"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
5074df62
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1?
Core and Builtins
-----------------
- Issue 7911: `unittest.TestCase.longMessage` defaults to True for improved
failure messages by default. Patch by Mark Roddy.
- Issue #9915: Speed up sorting with a key.
- Issue #9333: Expose os.symlink only when the SeCreateSymbolicLinkPrivilege
...
...
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