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
f828218d
Kaydet (Commit)
f828218d
authored
Şub 25, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25801: Fixed resource warnings in test_zipfile64.
Patch by SilentGhost.
üst
e76a6d56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test_zipfile64.py
Lib/test/test_zipfile64.py
+6
-2
No files found.
Lib/test/test_zipfile64.py
Dosyayı görüntüle @
f828218d
...
@@ -72,15 +72,19 @@ class TestsWithSourceFile(unittest.TestCase):
...
@@ -72,15 +72,19 @@ class TestsWithSourceFile(unittest.TestCase):
def
testStored
(
self
):
def
testStored
(
self
):
# Try the temp file first. If we do TESTFN2 first, then it hogs
# Try the temp file first. If we do TESTFN2 first, then it hogs
# gigabytes of disk space for the duration of the test.
# gigabytes of disk space for the duration of the test.
for
f
in
TemporaryFile
(),
TESTFN2
:
with
TemporaryFile
()
as
f
:
self
.
zipTest
(
f
,
zipfile
.
ZIP_STORED
)
self
.
zipTest
(
f
,
zipfile
.
ZIP_STORED
)
self
.
assertFalse
(
f
.
closed
)
self
.
zipTest
(
TESTFN2
,
zipfile
.
ZIP_STORED
)
@requires_zlib
@requires_zlib
def
testDeflated
(
self
):
def
testDeflated
(
self
):
# Try the temp file first. If we do TESTFN2 first, then it hogs
# Try the temp file first. If we do TESTFN2 first, then it hogs
# gigabytes of disk space for the duration of the test.
# gigabytes of disk space for the duration of the test.
for
f
in
TemporaryFile
(),
TESTFN2
:
with
TemporaryFile
()
as
f
:
self
.
zipTest
(
f
,
zipfile
.
ZIP_DEFLATED
)
self
.
zipTest
(
f
,
zipfile
.
ZIP_DEFLATED
)
self
.
assertFalse
(
f
.
closed
)
self
.
zipTest
(
TESTFN2
,
zipfile
.
ZIP_DEFLATED
)
def
tearDown
(
self
):
def
tearDown
(
self
):
for
fname
in
TESTFN
,
TESTFN2
:
for
fname
in
TESTFN
,
TESTFN2
:
...
...
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