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