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
f3ecb838
Kaydet (Commit)
f3ecb838
authored
May 29, 2011
tarafından
Nadeem Vawda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #1625: Add stream ordering test to test_bz2.
üst
07d291ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test_bz2.py
Lib/test/test_bz2.py
+11
-0
No files found.
Lib/test/test_bz2.py
Dosyayı görüntüle @
f3ecb838
...
@@ -426,6 +426,17 @@ class BZ2FileTest(BaseTest):
...
@@ -426,6 +426,17 @@ class BZ2FileTest(BaseTest):
next
(
bz2f
)
next
(
bz2f
)
self
.
assertEqual
(
bz2f
.
readlines
(),
[])
self
.
assertEqual
(
bz2f
.
readlines
(),
[])
def
testMultiStreamOrdering
(
self
):
# Test the ordering of streams when reading a multi-stream archive.
data1
=
b
"foo"
*
1000
data2
=
b
"bar"
*
1000
with
BZ2File
(
self
.
filename
,
"w"
)
as
bz2f
:
bz2f
.
write
(
data1
)
with
BZ2File
(
self
.
filename
,
"a"
)
as
bz2f
:
bz2f
.
write
(
data2
)
with
BZ2File
(
self
.
filename
)
as
bz2f
:
self
.
assertEqual
(
bz2f
.
read
(),
data1
+
data2
)
# Tests for a BZ2File wrapping another file object:
# Tests for a BZ2File wrapping another file object:
def
testReadBytesIO
(
self
):
def
testReadBytesIO
(
self
):
...
...
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