mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Ensure user site packages is on PYTHONPATH for notebook test server
This commit is contained in:
parent
a7fc604365
commit
15581d9567
@ -73,6 +73,7 @@ class NotebookTestBase(TestCase):
|
|||||||
data_dir = TemporaryDirectory()
|
data_dir = TemporaryDirectory()
|
||||||
cls.env_patch = patch.dict('os.environ', {
|
cls.env_patch = patch.dict('os.environ', {
|
||||||
'HOME': cls.home_dir.name,
|
'HOME': cls.home_dir.name,
|
||||||
|
'PYTHONPATH': os.pathsep.join(sys.path),
|
||||||
'IPYTHONDIR': pjoin(cls.home_dir.name, '.ipython'),
|
'IPYTHONDIR': pjoin(cls.home_dir.name, '.ipython'),
|
||||||
'JUPYTER_DATA_DIR' : data_dir.name
|
'JUPYTER_DATA_DIR' : data_dir.name
|
||||||
})
|
})
|
||||||
@ -147,4 +148,4 @@ def assert_http_error(status, msg=None):
|
|||||||
if msg:
|
if msg:
|
||||||
assert msg in str(e), e
|
assert msg in str(e), e
|
||||||
else:
|
else:
|
||||||
assert False, "Expected HTTP error status"
|
assert False, "Expected HTTP error status"
|
||||||
|
Loading…
Reference in New Issue
Block a user