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
26e70ecd
Commit
26e70ecd
authored
Nov 08, 2010
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed unit test failure on Windows
parent
004b7b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/test/test_trace.py
Lib/test/test_trace.py
+5
-4
No files found.
Lib/test/test_trace.py
View file @
26e70ecd
...
@@ -339,14 +339,15 @@ class TestCoverage(unittest.TestCase):
...
@@ -339,14 +339,15 @@ class TestCoverage(unittest.TestCase):
### regrtest is invoked with -T option.
### regrtest is invoked with -T option.
class
Test_Ignore
(
unittest
.
TestCase
):
class
Test_Ignore
(
unittest
.
TestCase
):
def
test_ignored
(
self
):
def
test_ignored
(
self
):
ignore
=
trace
.
Ignore
([
'x'
,
'y.z'
],
[
'/foo/bar'
])
jn
=
os
.
path
.
join
ignore
=
trace
.
Ignore
([
'x'
,
'y.z'
],
[
jn
(
'foo'
,
'bar'
)])
self
.
assertTrue
(
ignore
.
names
(
'x.py'
,
'x'
))
self
.
assertTrue
(
ignore
.
names
(
'x.py'
,
'x'
))
self
.
assertFalse
(
ignore
.
names
(
'xy.py'
,
'xy'
))
self
.
assertFalse
(
ignore
.
names
(
'xy.py'
,
'xy'
))
self
.
assertFalse
(
ignore
.
names
(
'y.py'
,
'y'
))
self
.
assertFalse
(
ignore
.
names
(
'y.py'
,
'y'
))
self
.
assertTrue
(
ignore
.
names
(
'/foo/bar/baz.py'
,
'baz'
))
self
.
assertTrue
(
ignore
.
names
(
jn
(
'foo'
,
'bar'
,
'baz.py'
)
,
'baz'
))
self
.
assertFalse
(
ignore
.
names
(
'bar/z.py'
,
'z'
))
self
.
assertFalse
(
ignore
.
names
(
jn
(
'bar'
,
'z.py'
)
,
'z'
))
# Matched before.
# Matched before.
self
.
assertTrue
(
ignore
.
names
(
'bar/baz.py'
,
'baz'
))
self
.
assertTrue
(
ignore
.
names
(
jn
(
'bar'
,
'baz.py'
)
,
'baz'
))
def
test_main
():
def
test_main
():
...
...
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