[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/zeo_blob_cache.test Fixed a fairly egregious bug in the test. Was closing db when meant

Jim Fulton jim at zope.com
Thu Jun 11 06:00:10 EDT 2009


Log message for revision 100858:
  Fixed a fairly egregious bug in the test.  Was closing db when meant
  to closs connection.  This showed up on windows but not linux or mac
  os x. I wonder why.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/zeo_blob_cache.test

-=-
Modified: ZODB/trunk/src/ZEO/tests/zeo_blob_cache.test
===================================================================
--- ZODB/trunk/src/ZEO/tests/zeo_blob_cache.test	2009-06-11 09:58:45 UTC (rev 100857)
+++ ZODB/trunk/src/ZEO/tests/zeo_blob_cache.test	2009-06-11 10:00:10 UTC (rev 100858)
@@ -121,7 +121,7 @@
     ...         data = conn.root()[i].open('c').read()
     ...         if data != chr(i)*100:
     ...             print 'bad data', `chr(i)`, `data`
-    ...     db.close()
+    ...     conn.close()
 
     >>> threads = [threading.Thread(target=run) for i in range(10)]
     >>> for thread in threads:



More information about the Zodb-checkins mailing list