Commit 27870c2a authored by JeanMichel FRANCOIS's avatar JeanMichel FRANCOIS

add a RENormalizer to not use ellipsis

parent f9af3f09
......@@ -394,7 +394,7 @@ And we shouldn't be able to read the data that we saved:
>>> blob_storage.loadBlob(blob._p_oid, s1)
Traceback (most recent call last):
...
POSKeyError: 'No blob file at ...'
POSKeyError: 'No blob file at /var/blobs/0x00/0x039bfdeeb0364777.blob'
Of course the old data should be unaffected:
......@@ -411,7 +411,7 @@ Similarly, the new object wasn't added to the storage:
>>> blob_storage.loadBlob(blob._p_oid, s2)
Traceback (most recent call last):
...
POSKeyError: 'No blob file at ...'
POSKeyError: 'No blob file at /var/blobs/0x00/0x039bfdeeb0364777.blob'
.. clean up
......
......@@ -682,6 +682,9 @@ def storage_reusable_suite(prefix, factory,
"blob_connection.txt", "blob_importexport.txt",
"blob_transaction.txt",
setUp=setup, tearDown=zope.testing.setupstack.tearDown,
checker=zope.testing.renormalizing.RENormalizing([
(re.compile(r'/.*/blobs/.*\.blob'), '<BLOB STORAGE PATH>')
]),
optionflags=doctest.ELLIPSIS,
))
if test_packing:
......
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