Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
25f0ea26
Commit
25f0ea26
authored
May 22, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python3.2 raises a different error message. Fixes checkExceptionLogsAtError
parent
3d31c7ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+8
-2
No files found.
src/ZEO/tests/testZEO.py
View file @
25f0ea26
...
@@ -556,17 +556,23 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
...
@@ -556,17 +556,23 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
'history() raised exception: history() takes at most '
'history() raised exception: history() takes at most '
'3 arguments (5 given)'
'3 arguments (5 given)'
)
)
py32_msg
=
(
'history() raised exception: history() takes at most '
'3 positional arguments (5 given)'
)
py3_msg
=
(
py3_msg
=
(
'history() raised exception: history() takes '
'history() raised exception: history() takes '
'from 2 to 3 positional arguments but 5 were given'
'from 2 to 3 positional arguments but 5 were given'
)
)
for
level
,
message
,
kw
in
log
:
for
level
,
message
,
kw
in
log
:
if
message
.
endswith
(
py2_msg
)
or
message
.
endswith
(
py3_msg
):
if
(
message
.
endswith
(
py2_msg
)
or
message
.
endswith
(
py32_msg
)
or
message
.
endswith
(
py3_msg
)):
self
.
assertEqual
(
level
,
logging
.
ERROR
)
self
.
assertEqual
(
level
,
logging
.
ERROR
)
self
.
assertEqual
(
kw
,{
'exc_info'
:
True
})
self
.
assertEqual
(
kw
,{
'exc_info'
:
True
})
break
break
else
:
else
:
self
.
fail
(
"error not in log
"
)
self
.
fail
(
"error not in log
%s"
%
log
)
# cleanup
# cleanup
del
conn
.
logger
.
log
del
conn
.
logger
.
log
...
...
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