From: Daira Hopwood Date: Mon, 2 Nov 2015 17:34:04 +0000 (+0000) Subject: Fix a test that fails only on Windows. X-Git-Url: https://git.rkrishnan.org/htmlfontify-example.html?a=commitdiff_plain;h=751ef57c511a09cc9cfb029dfe2b7985c93485ad;p=tahoe-lafs%2Ftahoe-lafs.git Fix a test that fails only on Windows. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 043142af..1e8f8993 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -895,9 +895,8 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): self.shouldFail(AssertionError, 'non-directory upload.dircap', 'does not refer to a directory', MagicFolder, client, 'URI:LIT:foo', '', errors_dir, magicfolderdb) self.shouldFail(AssertionError, 'readonly upload.dircap', 'is not a writecap to a directory', - MagicFolder, client, readonly_dircap, '', errors_dir, magicfolderdb,) - self.shouldFail(AssertionError, 'collective dircap', - "The URI in '%s' is not a readonly cap to a directory." % os.path.join('private', 'collective_dircap'), + MagicFolder, client, readonly_dircap, '', errors_dir, magicfolderdb) + self.shouldFail(AssertionError, 'collective dircap', 'is not a readonly cap to a directory', MagicFolder, client, upload_dircap, upload_dircap, errors_dir, magicfolderdb) def _not_implemented():