1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Add failing test case for installing when there are symlinks to directories

This commit is contained in:
Michael Williamson 2013-11-09 23:57:34 +00:00
parent 143b4641a3
commit 048c9763a8
6 changed files with 25 additions and 0 deletions

View file

View file

@ -0,0 +1 @@
doc

View file

@ -0,0 +1,3 @@
[egg_info]
tag_build = dev
tag_svn_revision = true

View file

@ -0,0 +1,8 @@
from setuptools import setup
version = '0.1'
setup(name='symlinks',
version=version,
packages=["symlinks"],
)

View file

@ -0,0 +1 @@
#

View file

@ -208,6 +208,18 @@ def test_install_from_local_directory(script, data):
assert egg_info_folder in result.files_created, str(result)
def test_install_from_local_directory_with_symlinks_to_directories(script, data):
"""
Test installing from a local directory containing symlinks to directories.
"""
to_install = data.packages.join("symlinks")
result = script.pip('install', to_install, expect_error=False)
pkg_folder = script.site_packages/'symlinks'
egg_info_folder = script.site_packages/'symlinks-0.1dev-py%s.egg-info' % pyversion
assert pkg_folder in result.files_created, str(result.stdout)
assert egg_info_folder in result.files_created, str(result)
def test_install_from_local_directory_with_no_setup_py(script, data):
"""
Test installing from a local directory with no 'setup.py'.