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
bf60f556
Commit
bf60f556
authored
Aug 24, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runall.py: ignore tests with with-statement on python 2.4
parent
4c082f5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
greentest/runall.py
greentest/runall.py
+10
-0
No files found.
greentest/runall.py
View file @
bf60f556
...
...
@@ -27,6 +27,7 @@ import random
from
glob
import
glob
from
optparse
import
OptionParser
from
time
import
time
import
py_compile
COMMAND
=
sys
.
executable
+
' ./record_results.py '
+
sys
.
executable
+
' ./with_timeout.py %(test)s'
PARSE_PERIOD
=
10
...
...
@@ -62,6 +63,15 @@ def main():
tests
=
list
(
tests
)
random
.
shuffle
(
tests
)
for
test
in
tests
[:]:
try
:
py_compile
.
compile
(
test
,
doraise
=
True
)
except
py_compile
.
PyCompileError
,
ex
:
if
"SyntaxError: invalid syntax"
in
str
(
ex
)
and
" with "
in
str
(
ex
):
print
'skipping %s'
%
test
tests
.
remove
(
test
)
else
:
raise
print
'tests: %s'
%
','
.
join
(
tests
)
if
options
.
dry_run
:
...
...
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