Skip to content

Commit 70be8cf

Browse files
Try to fix build on Windows and tests on macOS.
1 parent 1bd22b0 commit 70be8cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_sys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,6 +2091,8 @@ def test_remote_exec_bytes(self):
20912091
self.assertEqual(stderr, b"")
20922092

20932093
@unittest.skipUnless(os_helper.TESTFN_UNDECODABLE, 'requires undecodable path')
2094+
@unittest.skipIf(sys.platform == 'darwin',
2095+
'undecodable paths are not supported on macOS')
20942096
def test_remote_exec_undecodable(self):
20952097
script = '''
20962098
print("Remote script executed successfully!")

Python/sysmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,9 +2498,7 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script)
24982498
Py_DECREF(path);
24992499
return NULL;
25002500
}
2501-
Py_BEGIN_ALLOW_THREADS
25022501
DWORD attr = GetFileAttributesW(debugger_script_path_w);
2503-
Py_END_ALLOW_THREADS
25042502
PyMem_Free(debugger_script_path_w);
25052503
if (attr == INVALID_FILE_ATTRIBUTES) {
25062504
DWORD err = GetLastError();

0 commit comments

Comments
 (0)