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
d43b63fe
Kaydet (Commit)
d43b63fe
authored
Nis 03, 2010
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adding -b command line option to the unittest usage message.
üst
856a3be7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
main.py
Lib/unittest/main.py
+8
-6
No files found.
Lib/unittest/main.py
Dosyayı görüntüle @
d43b63fe
...
...
@@ -9,9 +9,9 @@ from .signals import installHandler
__unittest
=
True
FAILFAST
=
" -f, --failfast Stop on first failure
\n
"
CATCHBREAK
=
" -c, --catch Catch control-C and display result
s
\n
"
FAILFAST
=
" -f, --failfast Stop on first failure
\n
"
CATCHBREAK
=
" -c, --catch Catch control-C and display results
\n
"
BUFFEROUTPUT
=
" -b, --buffer Buffer stdout and stderr during test run
s
\n
"
USAGE_AS_MAIN
=
"""
\
Usage:
%(progName)
s [options] [tests]
...
...
@@ -20,7 +20,7 @@ Options:
-h, --help Show this message
-v, --verbose Verbose output
-q, --quiet Minimal output
%(failfast)
s
%(catchbreak)
s
%(failfast)
s
%(catchbreak)
s
%(buffer)
s
Examples:
%(progName)
s test_module - run tests from test_module
%(progName)
s test_module.TestClass - run tests from
...
...
@@ -34,7 +34,7 @@ Alternative Usage: %(progName)s discover [options]
Options:
-v, --verbose Verbose output
%(failfast)
s
%(catchbreak)
s -s directory Directory to start discovery ('.' default)
%(failfast)
s
%(catchbreak)
s
%(buffer)
s
-s directory Directory to start discovery ('.' default)
-p pattern Pattern to match test files ('test*.py' default)
-t directory Top level directory of project (default to
start directory)
...
...
@@ -50,7 +50,7 @@ Options:
-h, --help Show this message
-v, --verbose Verbose output
-q, --quiet Minimal output
%(failfast)
s
%(catchbreak)
s
%(failfast)
s
%(catchbreak)
s
%(buffer)
s
Examples:
%(progName)
s - run default set of tests
%(progName)
s MyTestSuite - run suite 'MyTestSuite'
...
...
@@ -103,6 +103,8 @@ class TestProgram(object):
usage
[
'failfast'
]
=
FAILFAST
if
self
.
catchbreak
!=
False
:
usage
[
'catchbreak'
]
=
CATCHBREAK
if
self
.
buffer
!=
False
:
usage
[
'buffer'
]
=
BUFFEROUTPUT
print
self
.
USAGE
%
usage
sys
.
exit
(
2
)
...
...
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