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
1f1c247a
Kaydet (Commit)
1f1c247a
authored
Kas 01, 2010
tarafından
Steven Bethard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unset COLUMNS for test_argparse (and restore afterwards) (issue 9553)
üst
50be1ca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test_argparse.py
Lib/test/test_argparse.py
+9
-0
No files found.
Lib/test/test_argparse.py
Dosyayı görüntüle @
1f1c247a
...
...
@@ -26,6 +26,13 @@ class TestCase(unittest.TestCase):
print
(
obj2
)
super
(
TestCase
,
self
)
.
assertEqual
(
obj1
,
obj2
)
def
setUp
(
self
):
# The tests assume that line wrapping occurs at 80 columns, but this
# behaviour can be overridden by setting the COLUMNS environment
# variable. To ensure that this assumption is true, unset COLUMNS.
env
=
support
.
EnvironmentVarGuard
()
env
.
unset
(
"COLUMNS"
)
self
.
addCleanup
(
env
.
__exit__
)
class
TempDirMixin
(
object
):
...
...
@@ -1715,6 +1722,7 @@ class TestAddSubparsers(TestCase):
return
parser
def
setUp
(
self
):
super
()
.
setUp
()
self
.
parser
=
self
.
_get_parser
()
self
.
command_help_parser
=
self
.
_get_parser
(
subparser_help
=
True
)
...
...
@@ -1942,6 +1950,7 @@ class TestParentParsers(TestCase):
self
.
assertRaises
(
ArgumentParserError
,
*
args
,
**
kwargs
)
def
setUp
(
self
):
super
()
.
setUp
()
self
.
wxyz_parent
=
ErrorRaisingArgumentParser
(
add_help
=
False
)
self
.
wxyz_parent
.
add_argument
(
'--w'
)
x_group
=
self
.
wxyz_parent
.
add_argument_group
(
'x'
)
...
...
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