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
4336f1fe
Commit
4336f1fe
authored
Nov 26, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated testrunner to be more explicit about errors when modules do not import
parent
9adc7636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
utilities/testrunner.py
utilities/testrunner.py
+8
-1
No files found.
utilities/testrunner.py
View file @
4336f1fe
...
...
@@ -55,7 +55,14 @@ class TestRunner:
saved_syspath
=
sys
.
path
[:]
try
:
sys
.
path
.
append
(
path
)
# let module find things in its dir
module
=
imp
.
load_module
(
name
,
file
,
pathname
,
desc
)
try
:
module
=
imp
.
load_module
(
name
,
file
,
pathname
,
desc
)
except
:
(
tb_t
,
tb_v
,
tb_tb
)
=
sys
.
exc_info
()
self
.
report
(
"Module %s failed to load
\
n
%s: %s"
%
(
pathname
,
tb_t
,
tb_v
))
self
.
report
(
join
(
traceback
.
format_tb
(
tb_tb
))
+
'
\
n
'
)
del
tb_tb
finally
:
file
.
close
()
sys
.
path
.
pop
()
# Remove module level path
...
...
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