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
d7b67c73
Commit
d7b67c73
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
f2369a15
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 @
d7b67c73
...
...
@@ -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 @
d7b67c73
...
...
@@ -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