Skip to content

Commit e092b6f

Browse files
committed
Fix test for 'PyDict_Contains'.
1 parent dc9019a commit e092b6f

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ def _reference_contains(args):
9292
try:
9393
return args[1] in args[0]
9494
except:
95-
raise SystemError
95+
if sys.version_info.minor >= 6:
96+
raise SystemError
97+
else:
98+
return -1
9699

97100

98101
class SubDict(dict):

0 commit comments

Comments
 (0)