Commit 05634cca authored by Jim Fulton's avatar Jim Fulton

Suppress version-deprecation warnings for tests.

parent 5647476b
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
Any storage that supports versions should be able to pass all these tests. Any storage that supports versions should be able to pass all these tests.
""" """
import time import time, warnings
import transaction import transaction
from transaction import Transaction from transaction import Transaction
...@@ -36,6 +36,9 @@ def loadEx(storage, oid, version): ...@@ -36,6 +36,9 @@ def loadEx(storage, oid, version):
data, serial = storage.load(oid, '') data, serial = storage.load(oid, '')
return data, serial, '' return data, serial, ''
warnings.filterwarnings(
'ignore', message='Versions are deprecated', module=__name__)
class VersionStorage: class VersionStorage:
......
...@@ -35,6 +35,8 @@ class DBTests(unittest.TestCase): ...@@ -35,6 +35,8 @@ class DBTests(unittest.TestCase):
self.__path = os.path.abspath('test.fs') self.__path = os.path.abspath('test.fs')
store = ZODB.FileStorage.FileStorage(self.__path) store = ZODB.FileStorage.FileStorage(self.__path)
self.db = ZODB.DB(store) self.db = ZODB.DB(store)
warnings.filterwarnings(
'ignore', message='Versions are deprecated', module=__name__)
def tearDown(self): def tearDown(self):
self.db.close() self.db.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment