Skip to content

Commit a6615a7

Browse files
committed
fix and enable truffle resources test on windows
1 parent 31e6472 commit a6615a7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/advance/ResourcesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
import static org.junit.Assert.assertTrue;
4444

45+
import java.io.File;
4546
import org.graalvm.polyglot.Context;
4647
import org.junit.Test;
4748

@@ -50,7 +51,7 @@ public class ResourcesTest {
5051
public void testResourcesAsHome() {
5152
try (Context context = Context.newBuilder("python").allowExperimentalOptions(true).option("python.PythonHome", "/path/that/does/not/exist").build()) {
5253
String foundHome = context.eval("python", "__graalpython__.home").asString();
53-
assertTrue(foundHome, foundHome.contains("python/python-home"));
54+
assertTrue(foundHome, foundHome.contains("python" + File.separator + "python-home"));
5455
}
5556

5657
try (Context context = Context.newBuilder("python").allowExperimentalOptions(true).option("python.PythonHome", "").build()) {

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ def graalpython_gate_runner(args, tasks):
13021302
"--verbose",
13031303
"--no-leak-tests",
13041304
"--regex",
1305-
r'(com\.oracle\.truffle\.tck\.tests)|(graal\.python\.test\.(advance\.Benchmark|basic|builtin|decorator|generator|interop|util))'
1305+
r'(com\.oracle\.truffle\.tck\.tests)|(graal\.python\.test\.(advance\.Benchmark|advance\.ResourcesTest|basic|builtin|decorator|generator|interop|util))'
13061306
],
13071307
report=True
13081308
)

mx.graalpython/suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# METADATA
66
#
77
# --------------------------------------------------------------------------------------------------------------
8-
"mxversion": "6.34.0",
8+
"mxversion": "6.36.0",
99
"name": "graalpython",
1010
"versionConflictResolution": "latest",
1111

0 commit comments

Comments
 (0)