Skip to content

Commit a1df2eb

Browse files
committed
Make verify check both server and kernel environments
1 parent 0ef7932 commit a1df2eb

File tree

1 file changed

+12
-0
lines changed
  • tests/venv/py2-with-kernel-requirements

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
#!/usr/bin/env python2
2+
import os
23
import sys
34

45
print(sys.version_info)
56
assert sys.version_info[:2] == (2, 7)
67

78
import numpy
9+
10+
try:
11+
import nbgitpuller
12+
except ImportError:
13+
pass
14+
else:
15+
raise Exception("'nbgitpuller' shouldn't have been installed from requirements3.txt")
16+
17+
# Python 3 is the executable used for the notebook server, this should
18+
# have nbgitpuller installed
19+
os.system("python3 -c 'import nbgitpuller'")

0 commit comments

Comments
 (0)