Commit cb518ed6 authored by Jim Fulton's avatar Jim Fulton

Catch the exception to prevent it from hanging around, keeping the

cache file open, and preventing it from being cleaned up on windows.
parent 0330eda8
......@@ -485,10 +485,9 @@ __test__ = dict(
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'
"""
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment