]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Really fix test_auth.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 27 Jan 2015 18:16:24 +0000 (18:16 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 27 Jan 2015 18:16:24 +0000 (18:16 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_auth.py

index 9e67caac31976f03a721f7c27445398d11f9f46c..2b52f00af1d711f4e558d23f26944e2f37f2694e 100644 (file)
@@ -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):