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
f77611f0
Commit
f77611f0
authored
Jan 11, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add check for '__main__' in tests that didn't have it
parent
e27075d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
29 deletions
+35
-29
greentest/test__benchmarks.py
greentest/test__benchmarks.py
+13
-11
greentest/test__doctests.py
greentest/test__doctests.py
+5
-3
greentest/test__examples.py
greentest/test__examples.py
+17
-15
No files found.
greentest/test__benchmarks.py
View file @
f77611f0
...
...
@@ -11,15 +11,17 @@ assert modules
error
=
0
for
path
in
modules
:
print
path
sys
.
stdout
.
flush
()
res
=
os
.
system
(
'%s %s all'
%
(
sys
.
executable
,
path
))
if
res
:
error
=
1
print
path
,
'failed'
print
'-----'
if
error
:
sys
.
exit
(
1
)
if
__name__
==
'__main__'
:
for
path
in
modules
:
print
path
sys
.
stdout
.
flush
()
res
=
os
.
system
(
'%s %s all'
%
(
sys
.
executable
,
path
))
if
res
:
error
=
1
print
path
,
'failed'
print
'-----'
if
error
:
sys
.
exit
(
1
)
greentest/test__doctests.py
View file @
f77611f0
...
...
@@ -32,6 +32,8 @@ for m, path in modules:
suite.addTest(s)
modules_count += 1
tests_count += len(s._tests)
print '
Total
:
%
s
tests
in
%
s
modules
' % (tests_count, modules_count)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)
if __name__ == '
__main__
':
print '
Total
:
%
s
tests
in
%
s
modules
' % (tests_count, modules_count)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)
greentest/test__examples.py
View file @
f77611f0
...
...
@@ -11,19 +11,21 @@ assert modules
errors
=
[]
for
path
in
modules
:
if
path
.
endswith
(
'server.py'
)
or
path
.
endswith
(
'proxy.py'
):
print
path
,
'skipping'
else
:
print
path
,
'running'
sys
.
stdout
.
flush
()
res
=
os
.
system
(
'%s %s'
%
(
sys
.
executable
,
path
))
if
res
:
print
path
,
'failed'
errors
.
append
(
path
)
print
'-----'
if
errors
:
print
'
\
n
\
n
Failures: %s'
%
', '
.
join
(
errors
)
sys
.
exit
(
1
)
if
__name__
==
'__main__'
:
for
path
in
modules
:
if
'server'
in
path
or
path
.
endswith
(
'proxy.py'
)
or
path
.
endswith
(
'webpy.py'
):
print
path
,
'skipping'
else
:
print
path
,
'running'
sys
.
stdout
.
flush
()
res
=
os
.
system
(
'%s %s'
%
(
sys
.
executable
,
path
))
if
res
:
print
path
,
'failed'
errors
.
append
(
path
)
print
'-----'
if
errors
:
print
'
\
n
\
n
Failures: %s'
%
', '
.
join
(
errors
)
sys
.
exit
(
1
)
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