Skip to content

Commit 186e1bb

Browse files
committed
repo-path verifies conda prefix
1 parent 9b7618c commit 186e1bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conda/repo-path/verify

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
import sys
33
import os
44

5-
# Python should still be in /srv/conda
6-
assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python')
5+
# conda should still be in /srv/conda
6+
# and Python should still be in $NB_PYTHON_PREFIX
7+
assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python'), sys.executable
8+
assert sys.executable.startswith("/srv/conda/"), sys.executable
79

810
# Repo should be in /srv/repo
911
assert os.path.exists('/srv/repo/verify')

0 commit comments

Comments
 (0)