We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c923e92 commit a9a31c0Copy full SHA for a9a31c0
notebook/tests/test_serverextensions.py
@@ -1,5 +1,6 @@
1
import imp
2
import os
3
+import site
4
import sys
5
from unittest import TestCase
6
from unittest.mock import patch
@@ -84,6 +85,11 @@ def setUp(self):
84
85
p = patch.object(mod,
86
'ENV_CONFIG_PATH', [])
87
self.patches.append(p)
88
+ # avoid adding the user site to the config paths with jupyter-core >= 4.9
89
+ # https://github.com/jupyter/jupyter_core/pull/242
90
+ p = patch.object(site,
91
+ 'ENABLE_USER_SITE', False)
92
+ self.patches.append(p)
93
for p in self.patches:
94
p.start()
95
self.addCleanup(p.stop)
0 commit comments