Fix non py3-compatible test in CI

This commit is contained in:
Martin Pépin 2018-10-06 17:18:40 +02:00
parent 5d978e89ea
commit fc16b3fedf

View file

@ -375,4 +375,4 @@ class LongTermClipperTests(CASTestCase):
for uid in uids: for uid in uids:
with self.assertRaises(ValueError) as cm: with self.assertRaises(ValueError) as cm:
get_ldap_infos(uid) get_ldap_infos(uid)
self.assertIn(uid, cm.exception.message) self.assertIn(uid, str(cm.exception))