Skip to content

Commit 8dee1ab

Browse files
committed
Fix 'test_dict' for Python 3.4.1.
1 parent e015fc1 commit 8dee1ab

File tree

1 file changed

+5
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+5
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_dict.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ def _reference_set_item(args):
5656
d[args[1]] = args[2]
5757
return 0
5858
except:
59-
raise SystemError
59+
60+
if sys.version_info.minor >= 6:
61+
raise SystemError
62+
else:
63+
return -1
6064

6165

6266
def _reference_del_item(args):

0 commit comments

Comments
 (0)