summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/tstutil.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-03 18:41:46 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-03 18:41:46 +0000
commit9548b4b951492b3aac175ba351a1dd7e857c017b (patch)
treef1040cdad80b74f27030d0555fdac62e695f01dd /ipalib/tests/tstutil.py
parent085ea3f62f37539a279f7d4ade51208fcbe868b9 (diff)
downloadfreeipa.git-9548b4b951492b3aac175ba351a1dd7e857c017b.tar.gz
freeipa.git-9548b4b951492b3aac175ba351a1dd7e857c017b.tar.xz
freeipa.git-9548b4b951492b3aac175ba351a1dd7e857c017b.zip
240: Small change in tstutil.check_TypeError(), cleaned up use of check_TypeError() in test_Option.test_normalize()
Diffstat (limited to 'ipalib/tests/tstutil.py')
-rw-r--r--ipalib/tests/tstutil.py4
1 files changed, 2 insertions, 2 deletions
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