Commit c27b644d authored by Tres Seaver's avatar Tres Seaver

Better assertion.

parent 6b525a6e
......@@ -67,7 +67,7 @@ def assertRaisesEx(e_type, checked, *args, **kw):
checked(*args, **kw)
except e_type as e:
return e
assert(0, "Didn't raise: %s" % e_type.__name__)
raise AssertionError("Didn't raise: %s" % e_type.__name__)
def positive_id(obj):
"""Return id(obj) as a non-negative integer."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment