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
2c849f2f
Kaydet (Commit)
2c849f2f
authored
Haz 12, 2007
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_shlex: Use io.StringIO.
üst
26e0f512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
test_shlex.py
Lib/test/test_shlex.py
+2
-7
No files found.
Lib/test/test_shlex.py
Dosyayı görüntüle @
2c849f2f
# -*- coding: iso-8859-1 -*-
import
unittest
import
os
,
sys
import
os
,
sys
,
io
import
shlex
from
test
import
test_support
try
:
from
cStringIO
import
StringIO
except
ImportError
:
from
StringIO
import
StringIO
# The original test data set was from shellwords, by Hartmut Goebel.
...
...
@@ -160,7 +155,7 @@ class ShlexTest(unittest.TestCase):
def
oldSplit
(
self
,
s
):
ret
=
[]
lex
=
shlex
.
shlex
(
StringIO
(
s
))
lex
=
shlex
.
shlex
(
io
.
StringIO
(
s
))
tok
=
lex
.
get_token
()
while
tok
:
ret
.
append
(
tok
)
...
...
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