Skip to content
Snippets Groups Projects
Unverified Commit 21b0031c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

[debug] dump a bunch of info from ShareFile

parent 6484a1a9
No related branches found
No related tags found
1 merge request!100Windows CI
......@@ -158,6 +158,19 @@ class RequiredPassesTests(TestCase):
)
from allmydata.storage.immutable import ShareFile
orig_ShareFile__init__ = ShareFile.__init__
def ShareFile__init__(self, filename, max_size=None, create=False):
print("ShareFile(filename={}, max_size={}, create={})".format(
filename,
max_size,
create,
))
orig_ShareFile__init__(self, filename, max_size, create)
with open(self.home) as f:
print("Home: {!r}".format(f.read(12)))
ShareFile.__init__ = ShareFile__init__
del ShareFile
class ShareTests(TestCase):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment