Skip to content

Commit c686c39

Browse files
committed
fix missing specialization that occurs in the gate
1 parent e02e0b8 commit c686c39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ PNone chdir(String spath) {
313313
throw raise(PythonErrorType.FileNotFoundError, "No such file or directory: '%s'", spath);
314314
}
315315
}
316+
317+
@Specialization
318+
PNone chdirPString(PString spath) {
319+
return chdir(spath.getValue());
320+
}
316321
}
317322

318323
@Builtin(name = "getpid", minNumOfPositionalArgs = 0)

0 commit comments

Comments
 (0)