Skip to content

Commit

Permalink
Fix missing commit from tests
Browse files Browse the repository at this point in the history
* everything else is good to go (verified)
* Fixes pypa#949, pypa#939, pypa#817, pypa#914, pypa#1012, pypa#1028, pypa#1025, pypa#960, pypa#1043, pypa#1045
  • Loading branch information
techalchemy committed Nov 14, 2017
1 parent d320bc4 commit 2b1e160
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_pipenv.py
Expand Up @@ -11,6 +11,10 @@
from pipenv.vendor import toml
from pipenv.vendor import delegator
from pipenv.project import Project
try:
from pathlib import Path
except:
from pipenv.vendor.pathlib2 import Path

os.environ['PIPENV_DONT_USE_PYENV'] = '1'

Expand Down Expand Up @@ -870,7 +874,7 @@ def test_relative_paths(self):
file_name = 'tablib-0.12.1.tar.gz'
test_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
source_path = os.path.abspath(os.path.join(test_dir, 'test_artifacts', file_name))

with PipenvInstance() as p:
artifact_dir = 'artifacts'
artifact_path = os.path.join(p.path, artifact_dir)
Expand All @@ -882,5 +886,5 @@ def test_relative_paths(self):
dep = p.pipfile['packages'][key]

assert 'path' in dep
assert u'{}'.format(os.path.join('.', artifact_dir, file_name)) == u'{}'.format(dep['path'])
assert Path(os.path.join('.', artifact_dir, file_name)) == Path(dep['path'])
assert c.return_code == 0

0 comments on commit 2b1e160

Please sign in to comment.