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
586edab2
Kaydet (Commit)
586edab2
authored
Kas 24, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1467: fix documentation for TestResult.add{Error,Failure}.
üst
439f250c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
unittest.rst
Doc/library/unittest.rst
+6
-4
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
586edab2
...
@@ -814,8 +814,9 @@ tools which support interactive reporting while tests are being run.
...
@@ -814,8 +814,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* raises an unexpected exception *err* is a tuple
Called when the test case *test* raises an unexpected exception *err* is a tuple
of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's ``errors``
The default implementation appends a tuple ``(test, formatted_err)`` to the
attribute.
instance's ``errors`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addFailure(test, err)
.. method:: TestResult.addFailure(test, err)
...
@@ -823,8 +824,9 @@ tools which support interactive reporting while tests are being run.
...
@@ -823,8 +824,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* signals a failure. *err* is a tuple of the form
Called when the test case *test* signals a failure. *err* is a tuple of the form
returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's
The default implementation appends a tuple ``(test, formatted_err)`` to the
``failures`` attribute.
instance's ``failures`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addSuccess(test)
.. method:: TestResult.addSuccess(test)
...
...
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