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
e94fce89
Commit
e94fce89
authored
Mar 30, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testrunner.py: get rid of regex that can take a long time
parent
2edfdccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
greentest/testrunner.py
greentest/testrunner.py
+13
-3
No files found.
greentest/testrunner.py
View file @
e94fce89
...
@@ -351,8 +351,6 @@ def get_failed_testcases(cursor, runid):
...
@@ -351,8 +351,6 @@ def get_failed_testcases(cursor, runid):
_warning_re
=
re
.
compile
(
'
\
w*w
a
rning'
,
re
.
I
)
_warning_re
=
re
.
compile
(
'
\
w*w
a
rning'
,
re
.
I
)
_error_re
=
re
.
compile
(
r'(?P<prefix>\
s*)T
raceback \
(mos
t recent call last\
):
' +
r'
(
\
n
(
?
P
=
prefix
)[
\
t
]
+
[
^
\
n
]
*
)
+
\
n
(
?
P
=
prefix
)(
?
P
<
error
>
[
\
w
\
.]
+
)
')
def
get_warnings
(
output
):
def
get_warnings
(
output
):
...
@@ -374,7 +372,19 @@ def get_exceptions(output):
...
@@ -374,7 +372,19 @@ def get_exceptions(output):
... ZeroDivisionError: integer division or modulo by zero''')
... ZeroDivisionError: integer division or modulo by zero''')
['ZeroDivisionError']
['ZeroDivisionError']
"""
"""
return [x.group('
error
') for x in _error_re.finditer(output)]
errors
=
[]
readtb
=
False
for
line
in
output
.
split
(
'
\
n
'
):
if
'Traceback (most recent call last):'
in
line
:
readtb
=
True
else
:
if
readtb
:
if
line
[:
1
]
==
' '
:
pass
else
:
errors
.
append
(
line
.
split
(
':'
)[
0
])
readtb
=
False
return
errors
def
get_warning_stats
(
output
):
def
get_warning_stats
(
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