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
0bb8d8c4
Kaydet (Commit)
0bb8d8c4
authored
Ara 16, 2012
tarafından
Hynek Schlawack
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
#16664: Add regression tests for glob's behaviour concerning "."-entries
Patch by Sebastian Kreft.
üst
8031d0df
9ca58933
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
test_glob.py
Lib/test/test_glob.py
+6
-1
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+4
-1
No files found.
Lib/test/test_glob.py
Dosyayı görüntüle @
0bb8d8c4
...
...
@@ -5,6 +5,7 @@ import glob
import
os
import
shutil
class
GlobTests
(
unittest
.
TestCase
):
def
norm
(
self
,
*
parts
):
...
...
@@ -18,9 +19,11 @@ class GlobTests(unittest.TestCase):
create_empty_file
(
filename
)
def
setUp
(
self
):
self
.
tempdir
=
TESTFN
+
"_dir"
self
.
tempdir
=
TESTFN
+
"_dir"
self
.
mktemp
(
'a'
,
'D'
)
self
.
mktemp
(
'aab'
,
'F'
)
self
.
mktemp
(
'.aa'
,
'G'
)
self
.
mktemp
(
'.bb'
,
'H'
)
self
.
mktemp
(
'aaa'
,
'zzzF'
)
self
.
mktemp
(
'ZZZ'
)
self
.
mktemp
(
'a'
,
'bcd'
,
'EF'
)
...
...
@@ -66,6 +69,8 @@ class GlobTests(unittest.TestCase):
eq
=
self
.
assertSequencesEqual_noorder
eq
(
self
.
glob
(
'a*'
),
map
(
self
.
norm
,
[
'a'
,
'aab'
,
'aaa'
]))
eq
(
self
.
glob
(
'*a'
),
map
(
self
.
norm
,
[
'a'
,
'aaa'
]))
eq
(
self
.
glob
(
'.*'
),
map
(
self
.
norm
,
[
'.aa'
,
'.bb'
]))
eq
(
self
.
glob
(
'?aa'
),
map
(
self
.
norm
,
[
'aaa'
]))
eq
(
self
.
glob
(
'aa?'
),
map
(
self
.
norm
,
[
'aaa'
,
'aab'
]))
eq
(
self
.
glob
(
'aa[ab]'
),
map
(
self
.
norm
,
[
'aaa'
,
'aab'
]))
eq
(
self
.
glob
(
'*q'
),
[])
...
...
Misc/ACKS
Dosyayı görüntüle @
0bb8d8c4
...
...
@@ -650,6 +650,7 @@ Jerzy Kozera
Maksim Kozyarchuk
Stefan Krah
Bob Kras
Sebastian Kreft
Holger Krekel
Michael Kremer
Fabian Kreutz
...
...
Misc/NEWS
Dosyayı görüntüle @
0bb8d8c4
...
...
@@ -67,7 +67,7 @@ Core and Builtins
- Issue #14794: Fix slice.indices to return correct results for huge values,
rather than raising OverflowError.
- Issue #15001: fix segfault on "del sys.module['
__main__
']". Patch by Victor
- Issue #15001: fix segfault on "del sys.module
s
['
__main__
']". Patch by Victor
Stinner.
- Issue #8271: the utf-8 decoder now outputs the correct number of U+FFFD
...
...
@@ -470,6 +470,9 @@ Extension Modules
Tests
-----
- Issue #16664: Add regression tests for glob'
s
behaviour
concerning
entries
starting
with
a
"."
.
Patch
by
Sebastian
Kreft
.
-
Issue
#
13390
:
The
``-
R
``
option
to
regrtest
now
also
checks
for
memory
allocation
leaks
,
using
:
func
:`
sys
.
getallocatedblocks
()`.
...
...
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