Skip to content

Commit

Permalink
A more robust way to get scripts path (#1706)
Browse files Browse the repository at this point in the history
Resolves #1683.

Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat authored Mar 10, 2020
1 parent 53f8aba commit d852194
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/discovery/py_info/test_py_info_exe_based_of.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from virtualenv.discovery.py_info import EXTENSIONS, PythonInfo
from virtualenv.info import IS_WIN, fs_is_case_sensitive, fs_supports_symlink
from virtualenv.util.path import Path

CURRENT = PythonInfo.current()

Expand All @@ -17,7 +16,7 @@ def test_discover_empty_folder(tmp_path, monkeypatch, session_app_data):
CURRENT.discover_exe(session_app_data, prefix=str(tmp_path))


BASE = {str(Path(CURRENT.executable).parent.relative_to(Path(CURRENT.prefix))), "."}
BASE = {CURRENT.distutils_install["scripts"], "."}


@pytest.mark.skipif(not fs_supports_symlink(), reason="symlink is not supported")
Expand Down

0 comments on commit d852194

Please sign in to comment.