From 9548b4b951492b3aac175ba351a1dd7e857c017b Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 3 Sep 2008 18:41:46 +0000 Subject: 240: Small change in tstutil.check_TypeError(), cleaned up use of check_TypeError() in test_Option.test_normalize() --- ipalib/tests/tstutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/tests/tstutil.py') diff --git a/ipalib/tests/tstutil.py b/ipalib/tests/tstutil.py index 1bf3eaab..7586d08c 100644 --- a/ipalib/tests/tstutil.py +++ b/ipalib/tests/tstutil.py @@ -139,9 +139,9 @@ def check_TypeError(value, type_, name, callback, *args, **kw): Tests a standard TypeError raised with `errors.raise_TypeError`. """ e = raises(TypeError, callback, *args, **kw) - assert e.value == value - assert type(e.value) is type(value) + assert e.value is value assert e.type is type_ assert e.name == name assert type(e.name) is str assert str(e) == errors.TYPE_FORMAT % (name, type_, value) + return e -- cgit