Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6c67b314
Commit
6c67b314
authored
Dec 16, 2012
by
Hynek Schlawack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#16664: Add regression tests for glob's behaviour concerning "."-entries
Patch by Sebastian Kreft.
parent
cb7f3df1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
Lib/test/test_glob.py
Lib/test/test_glob.py
+6
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_glob.py
View file @
6c67b314
...
@@ -4,6 +4,7 @@ import glob
...
@@ -4,6 +4,7 @@ import glob
import
os
import
os
import
shutil
import
shutil
class
GlobTests
(
unittest
.
TestCase
):
class
GlobTests
(
unittest
.
TestCase
):
def
norm
(
self
,
*
parts
):
def
norm
(
self
,
*
parts
):
...
@@ -18,9 +19,11 @@ class GlobTests(unittest.TestCase):
...
@@ -18,9 +19,11 @@ class GlobTests(unittest.TestCase):
f
.
close
()
f
.
close
()
def
setUp
(
self
):
def
setUp
(
self
):
self
.
tempdir
=
TESTFN
+
"_dir"
self
.
tempdir
=
TESTFN
+
"_dir"
self
.
mktemp
(
'a'
,
'D'
)
self
.
mktemp
(
'a'
,
'D'
)
self
.
mktemp
(
'aab'
,
'F'
)
self
.
mktemp
(
'aab'
,
'F'
)
self
.
mktemp
(
'.aa'
,
'G'
)
self
.
mktemp
(
'.bb'
,
'H'
)
self
.
mktemp
(
'aaa'
,
'zzzF'
)
self
.
mktemp
(
'aaa'
,
'zzzF'
)
self
.
mktemp
(
'ZZZ'
)
self
.
mktemp
(
'ZZZ'
)
self
.
mktemp
(
'a'
,
'bcd'
,
'EF'
)
self
.
mktemp
(
'a'
,
'bcd'
,
'EF'
)
...
@@ -66,6 +69,8 @@ class GlobTests(unittest.TestCase):
...
@@ -66,6 +69,8 @@ class GlobTests(unittest.TestCase):
eq
=
self
.
assertSequencesEqual_noorder
eq
=
self
.
assertSequencesEqual_noorder
eq
(
self
.
glob
(
'a*'
),
map
(
self
.
norm
,
[
'a'
,
'aab'
,
'aaa'
]))
eq
(
self
.
glob
(
'a*'
),
map
(
self
.
norm
,
[
'a'
,
'aab'
,
'aaa'
]))
eq
(
self
.
glob
(
'*a'
),
map
(
self
.
norm
,
[
'a'
,
'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?'
),
map
(
self
.
norm
,
[
'aaa'
,
'aab'
]))
eq
(
self
.
glob
(
'aa[ab]'
),
map
(
self
.
norm
,
[
'aaa'
,
'aab'
]))
eq
(
self
.
glob
(
'aa[ab]'
),
map
(
self
.
norm
,
[
'aaa'
,
'aab'
]))
eq
(
self
.
glob
(
'*q'
),
[])
eq
(
self
.
glob
(
'*q'
),
[])
...
...
Misc/ACKS
View file @
6c67b314
...
@@ -540,6 +540,7 @@ Jerzy Kozera
...
@@ -540,6 +540,7 @@ Jerzy Kozera
Maksim Kozyarchuk
Maksim Kozyarchuk
Stefan Krah
Stefan Krah
Bob Kras
Bob Kras
Sebastian Kreft
Holger Krekel
Holger Krekel
Michael Kremer
Michael Kremer
Fabian Kreutz
Fabian Kreutz
...
...
Misc/NEWS
View file @
6c67b314
...
@@ -548,6 +548,9 @@ Extension Modules
...
@@ -548,6 +548,9 @@ Extension Modules
Tests
Tests
-----
-----
-
Issue
#
16664
:
Add
regression
tests
for
glob
's behaviour concerning entries
starting with a ".". Patch by Sebastian Kreft.
- Issue #15747: ZFS always returns EOPNOTSUPP when attempting to set the
- Issue #15747: ZFS always returns EOPNOTSUPP when attempting to set the
UF_IMMUTABLE flag (via either chflags or lchflags); refactor affected
UF_IMMUTABLE flag (via either chflags or lchflags); refactor affected
tests in test_posix.py to account for this.
tests in test_posix.py to account for this.
...
...
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