mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-02 12:37:31 +08:00
sample_venvs: exclude venvs dir from py.test discovery
This commit is contained in:
1 parent
4eb3cf7921
commit
f500457100
14 files changed
+5
-3
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -30,8 +30,8 @@ def test_paths_from_assignment():
|
||||
# invoked with one of those versions, the test below will be run for the
|
||||
# matching directory.
|
||||
CUR_DIR = os.path.dirname(__file__)
|
||||
VENVS = list(glob(os.path.join(CUR_DIR,
|
||||
'venvs/venv%d%d' % sys.version_info[:2])))
|
||||
VENVS = list(glob(
|
||||
os.path.join(CUR_DIR, 'sample_venvs/venv%d%d' % sys.version_info[:2])))
|
||||
|
||||
|
||||
@pytest.mark.parametrize('venv', VENVS)
|
||||
@@ -49,4 +49,6 @@ def test_get_venv_path(venv):
|
||||
pjoin('/path', 'from', 'smth.py'),
|
||||
pjoin('/path', 'from', 'smth.py:extend_path')
|
||||
]
|
||||
# Ensure that none of venv dirs leaked to the interpreter.
|
||||
assert not set(sys.path).intersection(ETALON)
|
||||
assert venv_path[:len(ETALON)] == ETALON
|
||||
Reference in new issue
Block a user