Skip to content

Commit b4a2eb1

Browse files
committed
Don't run _struct in native mode on Windows
1 parent 6bad9ff commit b4a2eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def graalpython_gate_runner(args, tasks):
12001200
success = "\n".join(["win32"])
12011201
if success not in out.data:
12021202
mx.abort(f'Output from generated SVM image "{svm_image}" did not match success pattern:\nExpected\n{success}\nGot\n{out.data}')
1203-
mx.run([svm_image, "-c", "import struct; print(struct.pack('>I', 0x61626364))"], nonZeroIsFatal=True, out=mx.TeeOutputCapture(out), err=mx.TeeOutputCapture(out))
1203+
mx.run([svm_image, "--experimental-options", "--python.NativeModules=", "-c", "import struct; print(struct.pack('>I', 0x61626364))"], nonZeroIsFatal=True, out=mx.TeeOutputCapture(out), err=mx.TeeOutputCapture(out))
12041204
success = "b'abcd'"
12051205
if success not in out.data:
12061206
mx.abort(f'Output from generated SVM image "{svm_image}" did not match success pattern:\nExpected\n{success}\nGot\n{out.data}')

0 commit comments

Comments
 (0)