Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
8e56d53f
Commit
8e56d53f
authored
Dec 18, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made a test more flexible to unrelated logging changes.
parent
fe0205eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+10
-6
No files found.
src/ZEO/tests/testZEO.py
View file @
8e56d53f
...
@@ -486,14 +486,18 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
...
@@ -486,14 +486,18 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
# logged
# logged
self
.
_storage
.
_connection
.
handle_request
(
'foo'
,
0
,
'history'
,(
1
,
2
,
3
,
4
))
self
.
_storage
.
_connection
.
handle_request
(
'foo'
,
0
,
'history'
,(
1
,
2
,
3
,
4
))
# test logging
# test logging
level
,
message
,
kw
=
log
[
1
]
self
.
assertEqual
(
level
,
logging
.
ERROR
)
for
level
,
message
,
kw
in
log
:
self
.
failUnless
(
message
.
endswith
(
if
message
.
endswith
(
') history() raised exception: history() takes at'
') history() raised exception: history() takes at'
' most 3 arguments (5 given)'
' most 3 arguments (5 given)'
))
):
self
.
assertEqual
(
kw
,{
'exc_info'
:
True
})
self
.
assertEqual
(
level
,
logging
.
ERROR
)
self
.
assertEqual
(
kw
,{
'exc_info'
:
True
})
break
else
:
self
.
fail
(
"error not in 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