mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
Decode config file on read. Fixes two test failures on Python 3.
This commit is contained in:
parent
eefb7004c9
commit
dc883c0440
@ -184,7 +184,7 @@ class CreateNode(unittest.TestCase):
|
||||
# 'create-node', and disabled for 'create-client'.
|
||||
tahoe_cfg = os.path.join(n1, "tahoe.cfg")
|
||||
self.failUnless(os.path.exists(tahoe_cfg))
|
||||
content = fileutil.read(tahoe_cfg).replace('\r\n', '\n')
|
||||
content = fileutil.read(tahoe_cfg).decode('utf-8').replace('\r\n', '\n')
|
||||
if kind == "client":
|
||||
self.failUnless(re.search(r"\n\[storage\]\n#.*\nenabled = false\n", content), content)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user