Skip to content

Commit 2ab5d70

Browse files
committed
Small fixes
1 parent 780561b commit 2ab5d70

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Lib/test/test_sys.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,11 @@ def _run_remote_exec_test(self, script_code, python_args=None, env=None, prologu
20062006
# unblocks)
20072007
sock.recv(1024)
20082008
2009+
# Do a bunch of work to give the remote script time to run
2010+
x = 0
2011+
for i in range(100):
2012+
x += i
2013+
20092014
# Write confirmation back
20102015
sock.sendall(b"executed")
20112016
sock.close()

Python/remote_debugging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# define HAVE_PROCESS_VM_READV 0
6969
#endif
7070

71-
#if (defined(__APPLE__) || defined(MS_WINDOWS) || ((defined(__linux__) || defined(__FreeBSD__)) && HAVE_PROCESS_VM_READV))
71+
#if (defined(__APPLE__) || defined(MS_WINDOWS) || (defined(__linux__) && HAVE_PROCESS_VM_READV))
7272
# define Py_SUPPORTS_REMOTE_DEBUG 1
7373
#endif
7474

0 commit comments

Comments
 (0)