Skip to content

Commit 742ad80

Browse files
committed
fix error message
1 parent 35b6195 commit 742ad80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ def graalpython_gate_runner(args, tasks):
399399
out = mx.OutputCapture()
400400
mx.run([svm_image, "-S", "--python.StdLibHome=/foobar", "-c", "import encodings; print(encodings.__path__)"], out=mx.TeeOutputCapture(out))
401401
if "/foobar" not in out.data:
402-
mx.abort('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got:\n' + success)
402+
mx.abort('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got:\n' + out.data)
403403
# Test that stdlib paths are not cached on modules
404404
out = mx.OutputCapture()
405405
mx.run([svm_image, "-S", "--python.StdLibHome=/foobar", "-c", "import encodings; print(encodings.__file__)"], out=mx.TeeOutputCapture(out))
406406
if "/foobar" not in out.data:
407-
mx.abort('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got:\n' + success)
407+
mx.abort('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got:\n' + out.data)
408408
# Finally, test that we can start even if the graalvm was moved
409409
out = mx.OutputCapture()
410410
graalvm_home = svm_image.replace(os.path.sep.join(["", "bin", "graalpython"]), "")

0 commit comments

Comments
 (0)