Ensure user site packages is on PYTHONPATH for notebook test server

This commit is contained in:
Thomas Kluyver 2016-02-05 11:57:22 +00:00
parent a7fc604365
commit 15581d9567

View File

@ -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
})