Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure pythonpath is applied to test env only if present.

  • Loading branch information...
commit 681e926dcab4959b8aff3137de0a4ac6327a90b3 1 parent b3a081f
@fperez authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 IPython/zmq/tests/test_embed_kernel.py
View
5 IPython/zmq/tests/test_embed_kernel.py
@@ -36,8 +36,9 @@ def setup():
global save_get_ipython_dir
IPYTHONDIR = tempfile.mkdtemp()
- env = dict(IPYTHONDIR=IPYTHONDIR,
- PYTHONPATH=os.environ['PYTHONPATH'])
+ env = dict(IPYTHONDIR=IPYTHONDIR)
+ if 'PYTHONPATH' in os.environ:
+ env['PYTHONPATH'] = os.environ['PYTHONPATH']
save_get_ipython_dir = path.get_ipython_dir
path.get_ipython_dir = lambda : IPYTHONDIR
Please sign in to comment.
Something went wrong with that request. Please try again.