[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/ Suppress version-deprecation warnings for tests.

Jim Fulton jim at zope.com
Sat May 5 14:32:12 EDT 2007


Log message for revision 75511:
  Suppress version-deprecation warnings for tests.
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/VersionStorage.py
  U   ZODB/trunk/src/ZODB/tests/testDB.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/VersionStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/VersionStorage.py	2007-05-05 18:19:03 UTC (rev 75510)
+++ ZODB/trunk/src/ZODB/tests/VersionStorage.py	2007-05-05 18:32:12 UTC (rev 75511)
@@ -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,7 +36,10 @@
         data, serial = storage.load(oid, '')
         return data, serial, ''
         
+warnings.filterwarnings(
+    'ignore', message='Versions are deprecated', module=__name__)
 
+
 class VersionStorage:
 
     def checkCommitVersionSerialno(self):

Modified: ZODB/trunk/src/ZODB/tests/testDB.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testDB.py	2007-05-05 18:19:03 UTC (rev 75510)
+++ ZODB/trunk/src/ZODB/tests/testDB.py	2007-05-05 18:32:12 UTC (rev 75511)
@@ -35,6 +35,8 @@
         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()



More information about the Zodb-checkins mailing list