diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-21 07:40:45 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-21 07:40:45 -0500 |
commit | 9addc84bb39eddeccd31ee5a5f0fa387591e35dd (patch) | |
tree | 38d07a7c4e150ec765af25e3268376b84fd81c1a /igor.py | |
parent | fc38bf8526cb1717968a1958439da5fae4768375 (diff) | |
download | python-coveragepy-git-9addc84bb39eddeccd31ee5a5f0fa387591e35dd.tar.gz |
The egg test wasn't working properly. Thanks, py2.3, for pointing this out
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -126,12 +126,26 @@ def do_zip_mods(): zf.write("test/covmodzip1.py", "covmodzip1.py") zf.close() +def do_install_egg(): + """Install the egg1 egg for tests.""" + # I am pretty certain there are easier ways to install eggs... + # pylint: disable=F0401,E0611,E1101 + import distutils.core + cur_dir = os.getcwd() + os.chdir("test/eggsrc") + distutils.core.run_setup("setup.py", ["--quiet", "bdist_egg"]) + egg = glob.glob("dist/*.egg")[0] + distutils.core.run_setup( + "setup.py", ["--quiet", "easy_install", "--no-deps", "--zip-ok", egg] + ) + os.chdir(cur_dir) + def do_check_eol(): """Check files for incorrect newlines and trailing whitespace.""" ignore_dirs = [ '.svn', '.hg', '.tox', '.tox_kits', 'coverage.egg-info', - '_build', + '_build', 'covtestegg1.egg-info', ] checked = set([]) |