[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/test_cache.py Catch the exception to prevent it from hanging around, keeping the
Jim Fulton
jim at zope.com
Thu Nov 20 14:41:25 EST 2008
Log message for revision 93192:
Catch the exception to prevent it from hanging around, keeping the
cache file open, and preventing it from being cleaned up on windows.
Changed:
U ZODB/trunk/src/ZEO/tests/test_cache.py
-=-
Modified: ZODB/trunk/src/ZEO/tests/test_cache.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/test_cache.py 2008-11-20 19:40:22 UTC (rev 93191)
+++ ZODB/trunk/src/ZEO/tests/test_cache.py 2008-11-20 19:41:25 UTC (rev 93192)
@@ -485,10 +485,9 @@
bad_magic_number =
r"""
>>> open('cache', 'w').write("Hi world!")
- >>> cache = ZEO.cache.ClientCache('cache', 1000)
- Traceback (most recent call last):
- ...
- ValueError: unexpected magic number: 'Hi w'
+ >>> try: cache = ZEO.cache.ClientCache('cache', 1000)
+ ... except Exception, v: print v
+ unexpected magic number: 'Hi w'
"""
)
More information about the Zodb-checkins
mailing list