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
d96fda3a
Commit
d96fda3a
authored
Apr 11, 2011
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged ZODB/branches/tseaver-squelch_2.6_warnings to avoid a warning
while running tests.
parent
8186e691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
src/BTrees/tests/test_compare.py
src/BTrees/tests/test_compare.py
+13
-2
src/ZEO/tests/zeoserver.py
src/ZEO/tests/zeoserver.py
+2
-0
No files found.
src/BTrees/tests/test_compare.py
View file @
d96fda3a
...
...
@@ -47,8 +47,19 @@ class CompareTest(unittest.TestCase):
self
.
assertRaises
(
UnicodeError
,
callable
,
*
args
)
def
testBucketGet
(
self
):
self
.
bucket
[
self
.
s
]
=
1
self
.
assertUE
(
self
.
bucket
.
get
,
self
.
u
)
import
sys
import
warnings
_warnlog
=
[]
def
_showwarning
(
*
args
,
**
kw
):
_warnlog
.
append
((
args
,
kw
))
warnings
.
showwarning
,
_before
=
_showwarning
,
warnings
.
showwarning
try
:
self
.
bucket
[
self
.
s
]
=
1
self
.
assertUE
(
self
.
bucket
.
get
,
self
.
u
)
finally
:
warnings
.
showwarning
=
_before
if
sys
.
version_info
>=
(
2
,
6
):
self
.
assertEqual
(
len
(
_warnlog
),
1
)
def
testSetGet
(
self
):
self
.
set
.
insert
(
self
.
s
)
...
...
src/ZEO/tests/zeoserver.py
View file @
d96fda3a
...
...
@@ -210,4 +210,6 @@ def main():
if
__name__
==
'__main__'
:
import
warnings
warnings
.
simplefilter
(
'ignore'
)
main
()
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