Skip to content

Commit 9c9ecf9

Browse files
committed
chore(tests): simplify test
1 parent 2d2dcbf commit 9c9ecf9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/python/test_dict_methods.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,5 @@ def test_next_operator_non_iterator():
569569
try:
570570
next(make_js_generator(range(0,5)))
571571
assert (False)
572-
except Exception as e:
573-
assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>"
574-
assert str(e).__contains__("'range' object is not an iterator")
572+
except pm.SpiderMonkeyError as e:
573+
assert "'range' object is not an iterator" in str(e)

0 commit comments

Comments
 (0)