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
c0cbc861
Kaydet (Commit)
c0cbc861
authored
Tem 31, 2004
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
579f7355
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
hp_roman8.py
Lib/encodings/hp_roman8.py
+0
-0
test_optparse.py
Lib/test/test_optparse.py
+5
-5
No files found.
Lib/encodings/hp_roman8.py
Dosyayı görüntüle @
c0cbc861
This diff is collapsed.
Click to expand it.
Lib/test/test_optparse.py
Dosyayı görüntüle @
c0cbc861
...
@@ -59,7 +59,7 @@ Args were %(args)s.""" % locals ())
...
@@ -59,7 +59,7 @@ Args were %(args)s.""" % locals ())
kwargs
,
kwargs
,
expected_exception
,
expected_exception
,
expected_output
,
expected_output
,
get_output
=
None
,
get_output
=
None
,
exact_match
=
False
):
exact_match
=
False
):
"""Assert the expected exception is raised when calling a function.
"""Assert the expected exception is raised when calling a function.
...
@@ -346,7 +346,7 @@ class TestTypeAliases(BaseTest):
...
@@ -346,7 +346,7 @@ class TestTypeAliases(BaseTest):
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-x"
)
.
type
,
"int"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-x"
)
.
type
,
"int"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-s"
)
.
type
,
"string"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-s"
)
.
type
,
"string"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-t"
)
.
type
,
"string"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-t"
)
.
type
,
"string"
)
# Custom type for testing processing of default values.
# Custom type for testing processing of default values.
_time_units
=
{
's'
:
1
,
'm'
:
60
,
'h'
:
60
*
60
,
'd'
:
60
*
60
*
24
}
_time_units
=
{
's'
:
1
,
'm'
:
60
,
'h'
:
60
*
60
,
'd'
:
60
*
60
*
24
}
...
@@ -503,7 +503,7 @@ options:
...
@@ -503,7 +503,7 @@ options:
default
=
None
,
default
=
None
,
help
=
self
.
file_help
)
help
=
self
.
file_help
)
self
.
assertHelp
(
self
.
parser
,
self
.
expected_help_none
)
self
.
assertHelp
(
self
.
parser
,
self
.
expected_help_none
)
def
test_default_none_2
(
self
):
def
test_default_none_2
(
self
):
self
.
parser
.
add_option
(
"-f"
,
"--file"
,
self
.
parser
.
add_option
(
"-f"
,
"--file"
,
help
=
self
.
file_help
)
help
=
self
.
file_help
)
...
@@ -1375,7 +1375,7 @@ class TestHelp(BaseTest):
...
@@ -1375,7 +1375,7 @@ class TestHelp(BaseTest):
help
=
"store FOO in the foo list for later fooing"
),
help
=
"store FOO in the foo list for later fooing"
),
]
]
os
.
environ
[
'COLUMNS'
]
=
str
(
columns
)
os
.
environ
[
'COLUMNS'
]
=
str
(
columns
)
return
OptionParser
(
option_list
=
options
)
return
OptionParser
(
option_list
=
options
)
def
assertHelpEquals
(
self
,
expected_output
):
def
assertHelpEquals
(
self
,
expected_output
):
# This trick is used to make optparse believe bar.py is being executed.
# This trick is used to make optparse believe bar.py is being executed.
...
@@ -1441,7 +1441,7 @@ options:
...
@@ -1441,7 +1441,7 @@ options:
"""
)
"""
)
class
TestMatchAbbrev
(
BaseTest
):
class
TestMatchAbbrev
(
BaseTest
):
def
test_match_abbrev
(
self
):
def
test_match_abbrev
(
self
):
...
...
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