Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
gevent
Commits
18c93893
Commit
18c93893
authored
Jan 28, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testrunner: patch output to replace __main__ with actual test script name
parent
df17106d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
greentest/testrunner.py
greentest/testrunner.py
+6
-0
No files found.
greentest/testrunner.py
View file @
18c93893
...
...
@@ -188,6 +188,7 @@ def run_tests(options, args):
test_support
.
BasicTestRunner
=
_runner
if
os
.
path
.
exists
(
arg
):
sys
.
argv
=
args
# QQQ this makes tests reported as if they are from __main__ and screws up warnings location
execfile
(
arg
,
globals
())
else
:
test
=
defaultTestLoader
.
loadTestsFromName
(
arg
)
...
...
@@ -248,6 +249,11 @@ def run_subprocess(arg, options):
raise
finally
:
timeout
.
cancel
()
# QQQ compensating for run_tests' screw up
module_name
=
arg
if
module_name
.
endswith
(
'.py'
):
module_name
=
module_name
[:
-
3
]
output
=
output
.
replace
(
' (__main__.'
,
' ('
+
module_name
+
'.'
)
return
retcode
[
0
],
output
...
...
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