summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-04-14 06:12:09 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-04-14 06:12:09 -0400
commite6e6bdfa70a918aeb4f436c1739e7baf75d2e75f (patch)
treea145caea46fe09d51d84a0f5f7fc5c75707c807a /igor.py
parent8979a69e1dfd78cc96f9b6efd111c9d8cf92e120 (diff)
downloadpython-coveragepy-git-e6e6bdfa70a918aeb4f436c1739e7baf75d2e75f.tar.gz
test: remove the .egg test
People don't use .egg much anymore, distutils is showing deprecation warnings, and coverage.py only deals with them the same way it deals with .zip files, so let's just rely on a .zip test to cover that.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py19
1 files changed, 3 insertions, 16 deletions
diff --git a/igor.py b/igor.py
index a4a460c0..c99c8c3a 100644
--- a/igor.py
+++ b/igor.py
@@ -220,8 +220,10 @@ def do_zip_mods():
"""Build the zipmods.zip file."""
zf = zipfile.ZipFile("tests/zipmods.zip", "w")
- # Take one file from disk.
+ # Take some files from disk.
zf.write("tests/covmodzip1.py", "covmodzip1.py")
+ zf.write("tests/zipsrc/zip1/__init__.py", "zip1/__init__.py")
+ zf.write("tests/zipsrc/zip1/zip1.py", "zip1/zip1.py")
# The others will be various encodings.
source = textwrap.dedent(u"""\
@@ -252,21 +254,6 @@ def do_zip_mods():
zf.close()
-def do_install_egg():
- """Install the egg1 egg for tests."""
- # I am pretty certain there are easier ways to install eggs...
- cur_dir = os.getcwd()
- os.chdir("tests/eggsrc")
- with ignore_warnings():
- import distutils.core
- 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."""