Skip to content

Commit ff6b3cc

Browse files
committed
reporting improved when an instantiation test fails
1 parent c41e7e6 commit ff6b3cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helpers/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ def run(self, url, meta, mock_post, mock_get):
187187
if instance is None:
188188
# Expected None but didn't get it
189189
print('%s instantiated %s (but expected None)' % (
190-
url, str(obj)))
190+
url, type(obj)))
191191
assert False
192192

193193
if not isinstance(obj, instance):
194194
print('%s instantiated %s (but expected %s)' % (
195-
url, type(instance), str(obj)))
195+
url, type(instance), type(obj)))
196196
assert False
197197

198198
if isinstance(obj, NotifyBase):

0 commit comments

Comments
 (0)