| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | import unittest | |
| 3 | 3 | ||
| 4 | 4 | from jupyter_server.serverapp import ServerApp | |
| 5 | - import subprocess | ||
| 6 | 5 | ||
| 7 | 6 | # Adapted from: | |
| 8 | 7 | # https://github.com/jupyter-lsp/jupyterlab-lsp/blob/ce76fab170feea506faf9ef47e4bd6a468c24313/python_packages/jupyter_lsp/jupyter_lsp/tests/test_extension.py | |
@@ -29,9 +28,4 @@ def test_serverextension(self): | |||
| 29 | 28 | found_lsp = True | |
| 30 | 29 | ||
| 31 | 30 | self.assertTrue(found_lsp, "didn't install the /lsp/ route") | |
| 32 | - app.stop() | ||
| 33 | - | ||
| 34 | - strpid=subprocess.Popen("ps -ef | grep jupyter | grep 9999 | awk '{print $2}' | head -n 1", shell=True, stdout=subprocess.PIPE).stdout.read().decode("utf-8").strip() | ||
| 35 | - if strpid != "": | ||
| 36 | - pid=int(strpid) | ||
| 37 | - os.kill(pid, 9) | ||
| 31 | + os.kill(app.server_info()['pid'], 9) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments