From: Daira Hopwood Date: Tue, 27 Jan 2015 18:16:24 +0000 (+0000) Subject: Really fix test_auth. X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=10bf2cfb92fa579bc28b6df84da2eeee8459e972;p=tahoe-lafs%2Ftahoe-lafs.git Really fix test_auth. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_auth.py b/src/allmydata/test/test_auth.py index 9e67caac..2b52f00a 100644 --- a/src/allmydata/test/test_auth.py +++ b/src/allmydata/test/test_auth.py @@ -5,6 +5,8 @@ from twisted.conch import error as conch_error from twisted.conch.ssh import keys from allmydata.frontends import auth +from allmydata.util.fileutil import abspath_expanduser_unicode + DUMMY_KEY = keys.Key.fromString("""\ -----BEGIN RSA PRIVATE KEY----- @@ -37,7 +39,7 @@ class AccountFileCheckerKeyTests(unittest.TestCase): def setUp(self): self.account_file = filepath.FilePath(self.mktemp()) self.account_file.setContent(DUMMY_ACCOUNTS) - abspath = abspath_expanduser_unicode(self.account_file.path) + abspath = abspath_expanduser_unicode(unicode(self.account_file.path)) self.checker = auth.AccountFileChecker(None, abspath) def test_unknown_user(self):