From 4801fbedc07fb6183344e549c38b32efc0f6bf15 2012-05-31 18:41:14 From: Jörgen Stenarson Date: 2012-05-31 18:41:14 Subject: [PATCH] fix for #1809, failing tests in IPython.zmq on windows the env parameter to Popen needs to contain SYSTEMROOT --- diff --git a/IPython/zmq/tests/test_embed_kernel.py b/IPython/zmq/tests/test_embed_kernel.py index ac5739e..5f2ee15 100644 --- a/IPython/zmq/tests/test_embed_kernel.py +++ b/IPython/zmq/tests/test_embed_kernel.py @@ -36,9 +36,13 @@ def setup(): global save_get_ipython_dir IPYTHONDIR = tempfile.mkdtemp() + env = dict(IPYTHONDIR=IPYTHONDIR) if 'PYTHONPATH' in os.environ: env['PYTHONPATH'] = os.environ['PYTHONPATH'] + if sys.platform == 'win32': + env["SYSTEMROOT"] = os.environ["SYSTEMROOT"] + save_get_ipython_dir = path.get_ipython_dir path.get_ipython_dir = lambda : IPYTHONDIR