Skip to content

Commit

Permalink
Compare exception args (message removed in Python 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Mar 5, 2014
1 parent e9095a4 commit 3ed9d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loginas/tests/tests.py
Expand Up @@ -54,7 +54,7 @@ def assertRaisesExact(self, exception, func, *args, **kwargs):
func(*args, **kwargs)
self.assertFail("{0} not raised".format(exception))
except exception.__class__ as caught:
self.assertEqual(caught.message, exception.message)
self.assertEqual(caught.args, exception.args)

def clear_cookies(self):
for key in list(self.client.cookies.keys()):
Expand Down

0 comments on commit 3ed9d38

Please sign in to comment.