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
2e85b650
Commit
2e85b650
authored
May 23, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made testrunner print out a traceback when a test module can't be
imported rather than silently ignore the test.
parent
9d24e8f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
utilities/testrunner.py
utilities/testrunner.py
+4
-2
No files found.
utilities/testrunner.py
View file @
2e85b650
...
...
@@ -20,7 +20,7 @@ Testrunner is used to run all checked in test suites before (final) releases
are made, and can be used to quickly run a particular suite or all suites in
a particular directory."""
import
sys
,
os
,
imp
,
string
,
getopt
import
sys
,
os
,
imp
,
string
,
getopt
,
traceback
pyunit
=
None
...
...
@@ -110,7 +110,9 @@ class TestRunner:
os
.
chdir
(
dirname
)
self
.
report
(
'Running: %s'
%
filename
)
try
:
suite
=
self
.
getSuiteFromFile
(
filename
)
except
:
suite
=
None
except
:
traceback
.
print_exc
()
suite
=
None
if
suite
is
None
:
self
.
report
(
'No test suite found in file:
\
n
%s'
%
filename
)
return
...
...
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