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
80932545
Kaydet (Commit)
80932545
authored
May 08, 2015
tarafından
Larry Hastings
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge from 3.4.
üst
0048835e
7e63b36f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
test_zipfile.py
Lib/test/test_zipfile.py
+3
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_zipfile.py
Dosyayı görüntüle @
80932545
...
...
@@ -750,9 +750,10 @@ class PyZipFileTests(unittest.TestCase):
self
.
assertTrue
(
'SyntaxError'
not
in
reportStr
)
# then check that the filter works on individual files
def
filter
(
path
):
return
not
os
.
path
.
basename
(
path
)
.
startswith
(
"bad"
)
with
captured_stdout
()
as
reportSIO
,
self
.
assertWarns
(
UserWarning
):
zipfp
.
writepy
(
packagedir
,
filterfunc
=
lambda
fn
:
'bad'
not
in
fn
)
zipfp
.
writepy
(
packagedir
,
filterfunc
=
filter
)
reportStr
=
reportSIO
.
getvalue
()
if
reportStr
:
print
(
reportStr
)
...
...
Misc/NEWS
Dosyayı görüntüle @
80932545
...
...
@@ -69,6 +69,9 @@ Library
Tests
-----
-
Issue
#
21520
:
test_zipfile
no
longer
fails
if
the
word
'bad'
appears
anywhere
in
the
name
of
the
current
directory
.
-
Issue
#
9517
:
Move
script_helper
into
the
support
package
.
Patch
by
Christie
Wilson
.
...
...
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