Skip to content

Commit

Permalink
Use cross platform Path compatibility module in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
christek91 committed Nov 16, 2018
1 parent 65e49f1 commit 81a22cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_install_twists.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,15 @@ def test_multiple_editable_packages_should_not_race(PipenvInstance, pypi, tmpdir
"""
# Unzip tarballs to known location, and update Pipfile template.
for pkg_name, file_name in pkgs.items():
source_path = os.path.abspath(os.path.join(testsroot, "pypi", file_name))
unzip_path = tmpdir.join(pkg_name)
source_path = Path(testsroot, "pypi", file_name)
unzip_path = Path(tmpdir.strpath, pkg_name)

import tarfile

with tarfile.open(source_path, "r:gz") as tgz:
tgz.extractall(path=tmpdir.strpath)

pipfile_string += '"{0}" = {{path = "{1}", editable = true}}\n'.format(pkg_name, unzip_path.strpath)
pipfile_string += '"{0}" = {{path = "{1}", editable = true}}\n'.format(pkg_name, unzip_path)

with PipenvInstance(pypi=pypi, chdir=True) as p:
print(pipfile_string)
Expand Down

0 comments on commit 81a22cc

Please sign in to comment.