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
853947ae
Kaydet (Commit)
853947ae
authored
Ock 31, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix versionadded:: 2.x merges.
üst
9306602f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
unittest.rst
Doc/library/unittest.rst
+12
-11
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
853947ae
...
...
@@ -113,7 +113,7 @@ For a list of all the command line options::
python -m unittest -h
..
versionchanged:: 2.7
..
versionchanged:: 3.2
In earlier versions it was only possible to run individual test methods and
not modules or classes.
...
...
@@ -126,7 +126,7 @@ tests in a project or just a subset.
Test Discovery
--------------
.. versionadded::
2.7
.. versionadded::
3.2
unittest supports simple test discovery. For a project's tests to be
compatible with test discovery they must all be importable from the top level
...
...
@@ -1084,7 +1084,7 @@ Test cases
If :meth:`setUp` fails, meaning that :meth:`tearDown` is not called,
then any cleanup functions added will still be called.
.. versionadded::
2.7
.. versionadded::
3.2
.. method:: doCleanups()
...
...
@@ -1100,7 +1100,7 @@ Test cases
:meth:`doCleanups` pops methods off the stack of cleanup
functions one at a time, so it can be called at any time.
.. versionadded::
2.7
.. versionadded::
3.2
.. class:: FunctionTestCase(testFunc, setUp=None, tearDown=None, description=None)
...
...
@@ -1179,7 +1179,7 @@ Grouping tests
(for example when counting tests or comparing for equality)
so the tests returned must be the same for repeated iterations.
.. versionchanged::
2.7
.. versionchanged::
3.2
In earlier versions the :class:`TestSuite` accessed tests directly rather
than through iteration, so overriding :meth:`__iter__` wasn't sufficient
for providing tests.
...
...
@@ -1227,7 +1227,7 @@ Loading and running tests
load the tests. This allows modules to customize test loading.
This is the `load_tests protocol`_.
.. versionchanged::
2.7
.. versionchanged::
3.2
Support for ``load_tests`` added.
...
...
@@ -1297,7 +1297,8 @@ Loading and running tests
``load_tests`` does not need to pass this argument in to
``loader.discover()``.
.. versionadded:: 2.7
.. versionadded:: 3.2
The following attributes of a :class:`TestLoader` can be configured either by
subclassing or assignment on an instance:
...
...
@@ -1431,14 +1432,14 @@ Loading and running tests
Called once before any tests are executed.
.. versionadded::
2.7
.. versionadded::
3.2
.. method:: stopTestRun(test)
Called once after all tests are executed.
.. versionadded::
2.7
.. versionadded::
3.2
.. method:: addError(test, err)
...
...
@@ -1546,7 +1547,7 @@ Loading and running tests
Calling ``main`` actually returns an instance of the ``TestProgram`` class.
This stores the result of the tests run as the ``result`` attribute.
.. versionchanged::
2.7
.. versionchanged::
3.2
The ``exit`` and ``verbosity`` parameters were added.
...
...
@@ -1554,7 +1555,7 @@ load_tests Protocol
###################
.. versionadded::
2.7
.. versionadded::
3.2
Modules or packages can customize how tests are loaded from them during normal
...
...
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