mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Explicitly set the current working directory when running tests
Because of the profile directory searching algorithm, if the current working directory has a directory named 'profile_default', that will be used instead of the temporary profile directory the tests expect.
This commit is contained in:
parent
a7abca5a9f
commit
35c3095da0
@ -304,7 +304,7 @@ class JSController(TestController):
|
||||
command.append('--KernelManager.transport=ipc')
|
||||
self.stream_capturer = c = StreamCapturer()
|
||||
c.start()
|
||||
self.server = subprocess.Popen(command, stdout=c.writefd, stderr=subprocess.STDOUT)
|
||||
self.server = subprocess.Popen(command, stdout=c.writefd, stderr=subprocess.STDOUT, cwd=self.nbdir.name)
|
||||
self.server_info_file = os.path.join(self.ipydir.name,
|
||||
'profile_default', 'security', 'nbserver-%i.json' % self.server.pid
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user