diff --git a/colander/tests/test_colander.py b/colander/tests/test_colander.py index 0d058b7..a76ebef 100644 --- a/colander/tests/test_colander.py +++ b/colander/tests/test_colander.py @@ -1644,7 +1644,7 @@ class TestBooleanCustomFalseAndTrueReprs(unittest.TestCase): self.assertRaises(colander.Invalid, typ.deserialize, node, 'other') try: _val = typ.deserialize(node, 'other') - except colander.Invalid, exc: + except colander.Invalid as exc: self.assertEqual(exc.msg.mapping['false_choices'], "'n', 'f'") self.assertEqual(exc.msg.mapping['true_choices'], "'y', 't'")