From 10bf2cfb92fa579bc28b6df84da2eeee8459e972 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 27 Jan 2015 18:16:24 +0000 Subject: [PATCH] Really fix test_auth. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.45.2