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
41e836ec
Commit
41e836ec
authored
Aug 11, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print path that is actually scanned for tests, not libdir.
parent
7f7ee064
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test.py
test.py
+8
-8
No files found.
test.py
View file @
41e836ec
...
@@ -377,15 +377,19 @@ class PathInit:
...
@@ -377,15 +377,19 @@ class PathInit:
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
self
.
home
,
self
.
libdir
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
self
.
home
,
self
.
libdir
))
self
.
cwd
=
os
.
path
.
realpath
(
os
.
getcwd
())
self
.
cwd
=
os
.
path
.
realpath
(
os
.
getcwd
())
# Hack again for external products.
# Hack again for external products.
global
functional
kind
=
functional
and
"functional"
or
"unit"
if
libdir
:
if
libdir
:
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
libdir
))
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
libdir
))
else
:
else
:
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
self
.
libdir
))
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
self
.
libdir
))
if
self
.
libdir
not
in
sys
.
path
:
if
self
.
libdir
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
self
.
libdir
)
sys
.
path
.
insert
(
0
,
self
.
libdir
)
print
"Running %s tests from %s"
%
(
kind
,
self
.
libdir
)
# Determine where to look for tests
if
test_dir
:
self
.
testdir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
cwd
,
test_dir
))
else
:
self
.
testdir
=
self
.
libdir
kind
=
functional
and
"functional"
or
"unit"
print
"Running %s tests from %s"
%
(
kind
,
self
.
testdir
)
def
match
(
rx
,
s
):
def
match
(
rx
,
s
):
if
not
rx
:
if
not
rx
:
...
@@ -470,11 +474,7 @@ class TestFileFinder:
...
@@ -470,11 +474,7 @@ class TestFileFinder:
def
find_tests
(
rx
):
def
find_tests
(
rx
):
global
finder
global
finder
finder
=
TestFileFinder
(
pathinit
.
libdir
)
finder
=
TestFileFinder
(
pathinit
.
libdir
)
if
test_dir
:
walk_with_symlinks
(
pathinit
.
testdir
,
finder
.
visit
,
rx
)
walkdir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
pathinit
.
cwd
,
test_dir
))
else
:
walkdir
=
pathinit
.
libdir
walk_with_symlinks
(
walkdir
,
finder
.
visit
,
rx
)
return
finder
.
files
return
finder
.
files
def
package_import
(
modname
):
def
package_import
(
modname
):
...
...
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