Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
8a8824da
Commit
8a8824da
authored
Feb 27, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop testrunner.py from recursing into the 'build-base' directory created by setup.py.
parent
8413ccb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
utilities/testrunner.py
utilities/testrunner.py
+4
-3
No files found.
doc/CHANGES.txt
View file @
8a8824da
...
@@ -100,6 +100,9 @@ Zope Changes
...
@@ -100,6 +100,9 @@ Zope Changes
Bugs fixed
Bugs fixed
- Stop testrunner.py from recursing into the 'build-base' directory
created by setup.py.
- Collector #1074: Change Scripts' __name__ to None
- Collector #1074: Change Scripts' __name__ to None
- Range searches with KeywordIndexes did not work with record-style
- Range searches with KeywordIndexes did not work with record-style
...
...
utilities/testrunner.py
View file @
8a8824da
...
@@ -128,9 +128,10 @@ class TestRunner:
...
@@ -128,9 +128,10 @@ class TestRunner:
def
listTestableNames
(
self
,
pathname
):
def
listTestableNames
(
self
,
pathname
):
"""Return a list of the names to be traversed to build tests."""
"""Return a list of the names to be traversed to build tests."""
names
=
os
.
listdir
(
pathname
)
names
=
os
.
listdir
(
pathname
)
if
"build"
in
names
:
for
ignore
in
(
'build'
,
'build-base'
):
# Don't recurse into build directories created by setup.py
if
ignore
in
names
:
names
.
remove
(
"build"
)
# Don't recurse into build directories created by setup.py
names
.
remove
(
ignore
)
if
'.testinfo'
in
names
:
# allow local control
if
'.testinfo'
in
names
:
# allow local control
f
=
open
(
os
.
path
.
join
(
pathname
,
'.testinfo'
))
f
=
open
(
os
.
path
.
join
(
pathname
,
'.testinfo'
))
lines
=
filter
(
None
,
f
.
readlines
())
lines
=
filter
(
None
,
f
.
readlines
())
...
...
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