Skip to content

Commit

Permalink
Add HackedEggInfo test for the the fix for pypaGH-11.
Browse files Browse the repository at this point in the history
  • Loading branch information
msabramo committed Jul 2, 2012
1 parent ea109a0 commit 1f84b65
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/packages/HackedEggInfo/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-

from setuptools import setup
from setuptools.command import egg_info as orig_egg_info

class egg_info (orig_egg_info.egg_info):
def run(self):
orig_egg_info.egg_info.run(self)


setup(
name = "hackedegginfo",
version = '0.0.0',
cmdclass = {'egg_info':egg_info },
zip_safe = False,
)

10 changes: 10 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,16 @@ def test_install_with_pax_header():
run_pip('install', 'paxpkg.tar.bz2', cwd=run_from)


def test_install_with_hacked_egg_info():
"""
test installing a package which defines its own egg_info class
"""
reset_env()
run_from = abspath(join(here, 'packages', 'HackedEggInfo'))
result = run_pip('install', '.', cwd=run_from)
assert 'Successfully installed hackedegginfo\n' in result.stdout


def test_install_using_install_option_and_editable():
"""
Test installing a tool using -e and --install-option
Expand Down

0 comments on commit 1f84b65

Please sign in to comment.