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
7195963a
Kaydet (Commit)
7195963a
authored
Nis 27, 2009
tarafından
Hirokazu Yamamoto
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test_support was renamed to support on py3k.
üst
5afb5c66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
test_optparse.py
Lib/test/test_optparse.py
+2
-2
test_posixpath.py
Lib/test/test_posixpath.py
+1
-1
test_tempfile.py
Lib/test/test_tempfile.py
+1
-1
No files found.
Lib/test/test_optparse.py
Dosyayı görüntüle @
7195963a
...
@@ -1448,7 +1448,7 @@ class TestHelp(BaseTest):
...
@@ -1448,7 +1448,7 @@ class TestHelp(BaseTest):
# we must restore its original value -- otherwise, this test
# we must restore its original value -- otherwise, this test
# screws things up for other tests when it's part of the Python
# screws things up for other tests when it's part of the Python
# test suite.
# test suite.
with
test_
support
.
EnvironmentVarGuard
()
as
env
:
with
support
.
EnvironmentVarGuard
()
as
env
:
env
.
set
(
'COLUMNS'
,
str
(
columns
))
env
.
set
(
'COLUMNS'
,
str
(
columns
))
return
InterceptingOptionParser
(
option_list
=
options
)
return
InterceptingOptionParser
(
option_list
=
options
)
...
@@ -1473,7 +1473,7 @@ class TestHelp(BaseTest):
...
@@ -1473,7 +1473,7 @@ class TestHelp(BaseTest):
self
.
assertHelpEquals
(
_expected_help_long_opts_first
)
self
.
assertHelpEquals
(
_expected_help_long_opts_first
)
def
test_help_title_formatter
(
self
):
def
test_help_title_formatter
(
self
):
with
test_
support
.
EnvironmentVarGuard
()
as
env
:
with
support
.
EnvironmentVarGuard
()
as
env
:
env
.
set
(
"COLUMNS"
,
"80"
)
env
.
set
(
"COLUMNS"
,
"80"
)
self
.
parser
.
formatter
=
TitledHelpFormatter
()
self
.
parser
.
formatter
=
TitledHelpFormatter
()
self
.
assertHelpEquals
(
_expected_help_title_formatter
)
self
.
assertHelpEquals
(
_expected_help_title_formatter
)
...
...
Lib/test/test_posixpath.py
Dosyayı görüntüle @
7195963a
...
@@ -419,7 +419,7 @@ class PosixPathTest(unittest.TestCase):
...
@@ -419,7 +419,7 @@ class PosixPathTest(unittest.TestCase):
self
.
assert_
(
isinstance
(
posixpath
.
expanduser
(
b
"~root/"
),
bytes
))
self
.
assert_
(
isinstance
(
posixpath
.
expanduser
(
b
"~root/"
),
bytes
))
self
.
assert_
(
isinstance
(
posixpath
.
expanduser
(
b
"~foo/"
),
bytes
))
self
.
assert_
(
isinstance
(
posixpath
.
expanduser
(
b
"~foo/"
),
bytes
))
with
test_
support
.
EnvironmentVarGuard
()
as
env
:
with
support
.
EnvironmentVarGuard
()
as
env
:
env
.
set
(
'HOME'
,
'/'
)
env
.
set
(
'HOME'
,
'/'
)
self
.
assertEqual
(
posixpath
.
expanduser
(
"~"
),
"/"
)
self
.
assertEqual
(
posixpath
.
expanduser
(
"~"
),
"/"
)
...
...
Lib/test/test_tempfile.py
Dosyayı görüntüle @
7195963a
...
@@ -149,7 +149,7 @@ class test__candidate_tempdir_list(TC):
...
@@ -149,7 +149,7 @@ class test__candidate_tempdir_list(TC):
# _candidate_tempdir_list contains the expected directories
# _candidate_tempdir_list contains the expected directories
# Make sure the interesting environment variables are all set.
# Make sure the interesting environment variables are all set.
with
test_
support
.
EnvironmentVarGuard
()
as
env
:
with
support
.
EnvironmentVarGuard
()
as
env
:
for
envname
in
'TMPDIR'
,
'TEMP'
,
'TMP'
:
for
envname
in
'TMPDIR'
,
'TEMP'
,
'TMP'
:
dirname
=
os
.
getenv
(
envname
)
dirname
=
os
.
getenv
(
envname
)
if
not
dirname
:
if
not
dirname
:
...
...
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