From 15581d9567984c09d13d76953faa613d03250a3a Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 5 Feb 2016 11:57:22 +0000 Subject: [PATCH] Ensure user site packages is on PYTHONPATH for notebook test server --- notebook/tests/launchnotebook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/tests/launchnotebook.py b/notebook/tests/launchnotebook.py index e9842ca43..989148b7d 100644 --- a/notebook/tests/launchnotebook.py +++ b/notebook/tests/launchnotebook.py @@ -73,6 +73,7 @@ class NotebookTestBase(TestCase): data_dir = TemporaryDirectory() cls.env_patch = patch.dict('os.environ', { 'HOME': cls.home_dir.name, + 'PYTHONPATH': os.pathsep.join(sys.path), 'IPYTHONDIR': pjoin(cls.home_dir.name, '.ipython'), 'JUPYTER_DATA_DIR' : data_dir.name }) @@ -147,4 +148,4 @@ def assert_http_error(status, msg=None): if msg: assert msg in str(e), e else: - assert False, "Expected HTTP error status" \ No newline at end of file + assert False, "Expected HTTP error status"