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
853b6d3a
Commit
853b6d3a
authored
Jan 30, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap some long lines.
parent
601ac082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
utilities/testrunner.py
utilities/testrunner.py
+6
-4
No files found.
utilities/testrunner.py
View file @
853b6d3a
...
...
@@ -93,7 +93,8 @@ class TestRunner:
def
runSuite
(
self
,
suite
):
if
suite
:
runner
=
unittest
.
TextTestRunner
(
stream
=
sys
.
stderr
,
verbosity
=
self
.
verbosity
)
runner
=
unittest
.
TextTestRunner
(
stream
=
sys
.
stderr
,
verbosity
=
self
.
verbosity
)
self
.
results
.
append
(
runner
.
run
(
suite
))
else
:
self
.
report
(
'No suitable tests found'
)
...
...
@@ -151,7 +152,8 @@ class TestRunner:
except
KeyboardInterrupt
:
raise
except
:
self
.
report
(
'No test suite found in file:
\
n
%s
\
n
'
%
pathname
)
self
.
report
(
'No test suite found in file:
\
n
%s
\
n
'
%
pathname
)
if
self
.
verbosity
>
1
:
traceback
.
print_exc
()
suite
=
None
...
...
@@ -187,7 +189,7 @@ class TestRunner:
dirname
,
name
=
os
.
path
.
split
(
filename
)
if
dirname
:
if
self
.
verbosity
>
2
:
sys
.
stderr
.
write
(
'*** Changing directory to: %s
\
n
'
%
dirname
)
sys
.
stderr
.
write
(
'*** Changing directory to: %s
\
n
'
%
dirname
)
os
.
chdir
(
dirname
)
self
.
report
(
'Running: %s'
%
filename
)
try
:
...
...
@@ -202,7 +204,7 @@ class TestRunner:
else
:
self
.
report
(
'No test suite found in file:
\
n
%s
\
n
'
%
filename
)
if
self
.
verbosity
>
2
:
sys
.
stderr
.
write
(
'*** Restoring directory to: %s
\
n
'
%
working_dir
)
sys
.
stderr
.
write
(
'*** Restoring directory to: %s
\
n
'
%
working_dir
)
os
.
chdir
(
working_dir
)
def
remove_stale_bytecode
(
arg
,
dirname
,
names
):
...
...
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