[Zodb-checkins] SVN: ZODB/branches/3.8/src/ZEO/tests/test_cache.py
Fixed windows-incompatibility in tests.
Jim Fulton
jim at zope.com
Tue May 6 19:21:19 EDT 2008
Log message for revision 86522:
Fixed windows-incompatibility in tests.
Changed:
U ZODB/branches/3.8/src/ZEO/tests/test_cache.py
-=-
Modified: ZODB/branches/3.8/src/ZEO/tests/test_cache.py
===================================================================
--- ZODB/branches/3.8/src/ZEO/tests/test_cache.py 2008-05-06 21:36:44 UTC (rev 86521)
+++ ZODB/branches/3.8/src/ZEO/tests/test_cache.py 2008-05-06 23:21:17 UTC (rev 86522)
@@ -217,7 +217,9 @@
>>> for i in range(10):
... _ = os.spawnl(os.P_WAIT, sys.executable, sys.executable, 't')
... if os.path.exists('cache'):
- ... cache = ZEO.cache.ClientCache('cache').open()
+ ... cache = ZEO.cache.ClientCache('cache')
+ ... cache.open()
+ ... cache.close()
... os.remove('cache')
... os.remove('cache.lock')
@@ -240,18 +242,20 @@
>>> cache = ZEO.cache.ClientCache('cache', 1000)
>>> cache.open()
>>> cache.store(ZODB.utils.p64(2), '', ZODB.utils.p64(2), None, 'XXX')
-
+
+ >>> cache.close()
""",
cannot_open_same_cache_file_twice =
r"""
>>> import ZEO.cache
>>> cache = ZEO.cache.ClientCache('cache', 1000)
- >>> cache = ZEO.cache.ClientCache('cache', 1000)
+ >>> cache2 = ZEO.cache.ClientCache('cache', 1000)
Traceback (most recent call last):
...
LockError: Couldn't lock 'cache.lock'
-
+
+ >>> cache.close()
""",
)
More information about the Zodb-checkins
mailing list