[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - testCache.py:1.20

Jeremy Hylton jeremy at zope.com
Mon Mar 1 21:54:06 EST 2004


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv29605

Modified Files:
	testCache.py 
Log Message:
use builtin type names


=== Zope/lib/python/ZODB/tests/testCache.py 1.19 => 1.20 ===
--- Zope/lib/python/ZODB/tests/testCache.py:1.19	Thu Feb 26 19:31:55 2004
+++ Zope/lib/python/ZODB/tests/testCache.py	Mon Mar  1 21:53:59 2004
@@ -18,10 +18,9 @@
 objects in memory under the assumption that they may be used again.
 """
 
+import gc
 import time
-import types
 import unittest
-import gc
 
 import ZODB
 import ZODB.MappingStorage
@@ -81,8 +80,8 @@
 
     def checkCacheDetail(self):
         for name, count in self.db.cacheDetail():
-            self.assert_(isinstance(name, types.StringType))
-            self.assert_(isinstance(count, types.IntType))
+            self.assert_(isinstance(name, str))
+            self.assert_(isinstance(count, int))
 
     def checkCacheExtremeDetail(self):
         expected = ['conn_no', 'id', 'oid', 'rc', 'klass', 'state']




More information about the Zodb-checkins mailing list