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
22d5895d
Kaydet (Commit)
22d5895d
authored
Eki 12, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added a test for the StringIO write() error I just fixed.
üst
b636dc67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
test_StringIO
Lib/test/output/test_StringIO
+2
-0
test_StringIO.py
Lib/test/test_StringIO.py
+7
-0
No files found.
Lib/test/output/test_StringIO
Dosyayı görüntüle @
22d5895d
...
@@ -3,6 +3,7 @@ abcdefghij
...
@@ -3,6 +3,7 @@ abcdefghij
klmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
klmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
2
2
'abcuvwxyz!'
'abcdefghij'
'abcdefghij'
'abcde'
'abcde'
Caught expected ValueError writing to closed StringIO:
Caught expected ValueError writing to closed StringIO:
...
@@ -11,6 +12,7 @@ abcdefghij
...
@@ -11,6 +12,7 @@ abcdefghij
klmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
klmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
2
2
'abcuvwxyz!'
'abcdefghij'
'abcdefghij'
'abcde'
'abcde'
Caught expected ValueError writing to closed StringIO:
Caught expected ValueError writing to closed StringIO:
...
...
Lib/test/test_StringIO.py
Dosyayı görüntüle @
22d5895d
...
@@ -7,6 +7,13 @@ def do_test(module):
...
@@ -7,6 +7,13 @@ def do_test(module):
print
f
.
readline
()
print
f
.
readline
()
print
len
(
f
.
readlines
(
60
))
print
len
(
f
.
readlines
(
60
))
f
=
module
.
StringIO
()
f
.
write
(
'abcdef'
)
f
.
seek
(
3
)
f
.
write
(
'uvwxyz'
)
f
.
write
(
'!'
)
print
`f.getvalue()`
f
.
close
()
f
=
module
.
StringIO
()
f
=
module
.
StringIO
()
f
.
write
(
s
)
f
.
write
(
s
)
f
.
seek
(
10
)
f
.
seek
(
10
)
...
...
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