Oops, can't use the form of assertRaises on 2.6

This commit is contained in:
Liam Marshall
2015-10-25 15:46:21 -05:00
parent 17bd379017
commit 88cc70b5a5
+1 -2
View File
@@ -115,8 +115,7 @@ class AuthenticatorTest(unittest.TestCase):
# pylint: disable=unused-argument
mock_interaction().yesno.return_value = False
with self.assertRaises(errors.PluginError):
self.auth.perform(self.achalls)
self.assertRaises(errors.PluginError, self.auth.perform, self.achalls)
if __name__ == "__main__":