Get a text-mode FilePath in a py3 compatible way

This commit is contained in:
Jean-Paul Calderone 2021-08-11 13:32:04 -04:00
parent 2244f0374e
commit 0176583e75

View File

@ -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"")