We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc12241 commit a72ae89Copy full SHA for a72ae89
tests/python/test_functions_this.py
@@ -214,6 +214,5 @@ def some_method():
214
try:
215
pm.eval('x => x.some_method()')(obj)
216
assert (False)
217
- except Exception as e:
218
- assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>"
219
- assert str(e).__contains__('takes 0 positional arguments but 1 was given')
+ except pm.SpiderMonkeyError as e:
+ assert 'takes 0 positional arguments but 1 was given' in str(e)
0 commit comments