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
6ac4240b
Kaydet (Commit)
6ac4240b
authored
Nis 16, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.
üst
45278a89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
unittest.rst
Doc/library/unittest.rst
+7
-7
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
6ac4240b
...
@@ -674,9 +674,9 @@ Test cases
...
@@ -674,9 +674,9 @@ Test cases
.. method:: setUp()
.. method:: setUp()
Method called to prepare the test fixture. This is called immediately
Method called to prepare the test fixture. This is called immediately
before calling the test method;
any exception raised by this method will
before calling the test method;
other than :exc:`AssertionError` or :exc:`SkipTest`,
be considered an error rather than a test failure. The default
any exception raised by this method will be considered an error rather than
implementation does nothing.
a test failure. The default
implementation does nothing.
.. method:: tearDown()
.. method:: tearDown()
...
@@ -684,10 +684,10 @@ Test cases
...
@@ -684,10 +684,10 @@ Test cases
Method called immediately after the test method has been called and the
Method called immediately after the test method has been called and the
result recorded. This is called even if the test method raised an
result recorded. This is called even if the test method raised an
exception, so the implementation in subclasses may need to be particularly
exception, so the implementation in subclasses may need to be particularly
careful about checking internal state. Any exception
raised by this
careful about checking internal state. Any exception
, other than :exc:`AssertionError`
method will be considered an error rather than a test failure. This
or :exc:`SkipTest`, raised by this method will be considered an error rather than a
method will only be called if the :meth:`setUp` succeeds, regardless of
test failure. This method will only be called if the :meth:`setUp` succeeds,
the outcome of the test method. The default implementation does nothing.
regardless of
the outcome of the test method. The default implementation does nothing.
.. method:: setUpClass()
.. method:: setUpClass()
...
...
Misc/ACKS
Dosyayı görüntüle @
6ac4240b
...
@@ -18,6 +18,7 @@ David Abrahams
...
@@ -18,6 +18,7 @@ David Abrahams
Marc Abramowitz
Marc Abramowitz
Ron Adam
Ron Adam
Ali Afshar
Ali Afshar
Nitika Agarwal
Jim Ahlstrom
Jim Ahlstrom
Farhan Ahmad
Farhan Ahmad
Matthew Ahrens
Matthew Ahrens
...
...
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