mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Get a text-mode FilePath in a py3 compatible way
This commit is contained in:
parent
2244f0374e
commit
0176583e75
@ -157,7 +157,7 @@ class RunTests(SyncTestCase):
|
|||||||
If the pidfile exists but does not contain a numeric value, a complaint to
|
If the pidfile exists but does not contain a numeric value, a complaint to
|
||||||
this effect is written to stderr.
|
this effect is written to stderr.
|
||||||
"""
|
"""
|
||||||
basedir = FilePath(self.mktemp().decode("ascii"))
|
basedir = FilePath(self.mktemp()).asTextMode()
|
||||||
basedir.makedirs()
|
basedir.makedirs()
|
||||||
basedir.child(u"twistd.pid").setContent(b"foo")
|
basedir.child(u"twistd.pid").setContent(b"foo")
|
||||||
basedir.child(u"tahoe-client.tac").setContent(b"")
|
basedir.child(u"tahoe-client.tac").setContent(b"")
|
||||||
|
Loading…
Reference in New Issue
Block a user