Fix test_magic_folder.py to use absolute unicode paths when calling write_downloaded_file.

This commit is contained in:
Daira Hopwood 2016-02-15 15:43:00 +00:00 committed by Brian Warner
parent d2ae4255c8
commit e3dfc8f3f4

View File

@ -1238,8 +1238,8 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase):
return d
def test_write_downloaded_file(self):
workdir = u"cli/MagicFolder/write-downloaded-file"
local_file = fileutil.abspath_expanduser_unicode(os.path.join(workdir, "foobar"))
workdir = fileutil.abspath_expanduser_unicode(u"cli/MagicFolder/write-downloaded-file")
local_file = fileutil.abspath_expanduser_unicode(u"foobar", base=workdir)
class TestWriteFileMixin(WriteFileMixin):
def _log(self, msg):