Skip to content

Commit a72ae89

Browse files
Update tests/python/test_functions_this.py
Co-authored-by: Caleb Aikens <[email protected]>
1 parent dc12241 commit a72ae89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/python/test_functions_this.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,5 @@ def some_method():
214214
try:
215215
pm.eval('x => x.some_method()')(obj)
216216
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')
217+
except pm.SpiderMonkeyError as e:
218+
assert 'takes 0 positional arguments but 1 was given' in str(e)

0 commit comments

Comments
 (0)