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
d218e956
Kaydet (Commit)
d218e956
authored
Ock 03, 2011
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 10786: unittest documentation update.
üst
e33b7c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
unittest.rst
Doc/library/unittest.rst
+10
-4
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
d218e956
...
@@ -1870,9 +1870,10 @@ Loading and running tests
...
@@ -1870,9 +1870,10 @@ Loading and running tests
instead of repeatedly creating new instances.
instead of repeatedly creating new instances.
.. class:: TextTestRunner(stream=
sys.stderr
, descriptions=True, verbosity=1, runnerclass=None, warnings=None)
.. class:: TextTestRunner(stream=
None
, descriptions=True, verbosity=1, runnerclass=None, warnings=None)
A basic test runner implementation which prints results on standard error. It
A basic test runner implementation that outputs results to a stream. If *stream*
is `None`, the default, `sys.stderr` is used as the output stream. This class
has a few configurable parameters, but is essentially very simple. Graphical
has a few configurable parameters, but is essentially very simple. Graphical
applications which run test suites should provide alternate implementations.
applications which run test suites should provide alternate implementations.
...
@@ -1885,6 +1886,13 @@ Loading and running tests
...
@@ -1885,6 +1886,13 @@ Loading and running tests
messages. This behavior can be overridden using the :option:`-Wd` or
messages. This behavior can be overridden using the :option:`-Wd` or
:option:`-Wa` options and leaving *warnings* to ``None``.
:option:`-Wa` options and leaving *warnings* to ``None``.
.. versionchanged:: 3.2
Added the ``warnings`` argument.
.. versionchanged:: 3.2
The default stream is set to `sys.stderr` at instantiation time rather
than import time.
.. method:: _makeResult()
.. method:: _makeResult()
This method returns the instance of ``TestResult`` used by :meth:`run`.
This method returns the instance of ``TestResult`` used by :meth:`run`.
...
@@ -1898,8 +1906,6 @@ Loading and running tests
...
@@ -1898,8 +1906,6 @@ Loading and running tests
stream, descriptions, verbosity
stream, descriptions, verbosity
.. versionchanged:: 3.2
Added the ``warnings`` argument.
.. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=None, \
.. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=None, \
testLoader=unittest.loader.defaultTestLoader, exit=True, verbosity=1, \
testLoader=unittest.loader.defaultTestLoader, exit=True, verbosity=1, \
...
...
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