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
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
Nicolas Wavrant
ZODB
Commits
05634cca
Commit
05634cca
authored
May 05, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress version-deprecation warnings for tests.
parent
5647476b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ZODB/tests/VersionStorage.py
src/ZODB/tests/VersionStorage.py
+4
-1
src/ZODB/tests/testDB.py
src/ZODB/tests/testDB.py
+2
-0
No files found.
src/ZODB/tests/VersionStorage.py
View file @
05634cca
...
...
@@ -16,7 +16,7 @@
Any storage that supports versions should be able to pass all these tests.
"""
import
time
import
time
,
warnings
import
transaction
from
transaction
import
Transaction
...
...
@@ -36,6 +36,9 @@ def loadEx(storage, oid, version):
data
,
serial
=
storage
.
load
(
oid
,
''
)
return
data
,
serial
,
''
warnings
.
filterwarnings
(
'ignore'
,
message
=
'Versions are deprecated'
,
module
=
__name__
)
class
VersionStorage
:
...
...
src/ZODB/tests/testDB.py
View file @
05634cca
...
...
@@ -35,6 +35,8 @@ class DBTests(unittest.TestCase):
self
.
__path
=
os
.
path
.
abspath
(
'test.fs'
)
store
=
ZODB
.
FileStorage
.
FileStorage
(
self
.
__path
)
self
.
db
=
ZODB
.
DB
(
store
)
warnings
.
filterwarnings
(
'ignore'
,
message
=
'Versions are deprecated'
,
module
=
__name__
)
def
tearDown
(
self
):
self
.
db
.
close
()
...
...
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