Skip to content

Commit a9a31c0

Browse files
authored
TST: don't look in user site for serverextensions (#6233)
* TST: don't look in user site for serverextensions
1 parent c923e92 commit a9a31c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

notebook/tests/test_serverextensions.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import imp
22
import os
3+
import site
34
import sys
45
from unittest import TestCase
56
from unittest.mock import patch
@@ -84,6 +85,11 @@ def setUp(self):
8485
p = patch.object(mod,
8586
'ENV_CONFIG_PATH', [])
8687
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)
8793
for p in self.patches:
8894
p.start()
8995
self.addCleanup(p.stop)

0 commit comments

Comments
 (0)