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
32f4e6e9
Kaydet (Commit)
32f4e6e9
authored
Kas 22, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#16309: avoid using deprecated method and turn docstring in a comment.
üst
588090ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test_cmd_line.py
Lib/test/test_cmd_line.py
+6
-6
No files found.
Lib/test/test_cmd_line.py
Dosyayı görüntüle @
32f4e6e9
...
...
@@ -218,11 +218,11 @@ class CmdLineTest(unittest.TestCase):
self
.
assertIn
(
path2
.
encode
(
'ascii'
),
out
)
def
test_empty_PYTHONPATH_issue16309
(
self
):
"""
On Posix, it is documented that setting PATH to the
empty string is equivalent to not setting PATH at all,
which is an exception to the rule that in a string like
"/bin::/usr/bin" the empty string in the middle gets
interpreted as '.'"""
#
On Posix, it is documented that setting PATH to the
#
empty string is equivalent to not setting PATH at all,
#
which is an exception to the rule that in a string like
#
"/bin::/usr/bin" the empty string in the middle gets
# interpreted as '.'
code
=
"""if 1:
import sys
path = ":".join(sys.path)
...
...
@@ -232,7 +232,7 @@ class CmdLineTest(unittest.TestCase):
rc2
,
out2
,
err2
=
assert_python_ok
(
'-c'
,
code
)
# regarding to Posix specification, outputs should be equal
# for empty and unset PYTHONPATH
self
.
assertEqual
s
(
out1
,
out2
)
self
.
assertEqual
(
out1
,
out2
)
def
test_displayhook_unencodable
(
self
):
for
encoding
in
(
'ascii'
,
'latin-1'
,
'utf-8'
):
...
...
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