From c928f4bcaa2962e4dd91a531f3252a006cce21d0 2014-12-06 21:20:23 From: Thomas Kluyver Date: 2014-12-06 21:20:23 Subject: [PATCH] Convert parent handle to an int before setting environment variable Should fix Windows & Python 2 test failures --- diff --git a/IPython/kernel/launcher.py b/IPython/kernel/launcher.py index 6f60e52..6171bdb 100644 --- a/IPython/kernel/launcher.py +++ b/IPython/kernel/launcher.py @@ -197,7 +197,7 @@ def launch_kernel(cmd, stdin=None, stdout=None, stderr=None, env=None, handle = DuplicateHandle(pid, pid, pid, 0, True, # Inheritable by new processes. DUPLICATE_SAME_ACCESS) - env['JPY_PARENT_PID'] = str(handle) + env['JPY_PARENT_PID'] = str(int(handle)) proc = Popen(cmd, **kwargs)