File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,9 @@ public void postInitialize(Python3Core core) {
345
345
PythonModule posix ;
346
346
if (PythonOS .getPythonOS () == PythonOS .PLATFORM_WIN32 ) {
347
347
posix = core .lookupBuiltinModule (T_NT );
348
+ posix .setAttribute (toTruffleStringUncached ("chown" ), PNone .NO_VALUE );
349
+ posix .setAttribute (toTruffleStringUncached ("fchown" ), PNone .NO_VALUE );
350
+ posix .setAttribute (toTruffleStringUncached ("lchown" ), PNone .NO_VALUE );
348
351
} else {
349
352
posix = core .lookupBuiltinModule (T_POSIX );
350
353
}
Original file line number Diff line number Diff line change @@ -341,7 +341,8 @@ def test_win32_ver(self):
341
341
int (v ) # should not fail
342
342
if csd :
343
343
self .assertTrue (csd .startswith ('SP' ), msg = csd )
344
- if ptype :
344
+ # Truffle change: graalpy does not support registry access
345
+ if ptype and ptype != ptype1 :
345
346
if os .cpu_count () > 1 :
346
347
self .assertIn ('Multiprocessor' , ptype )
347
348
else :
You can’t perform that action at this time.
0 commit comments