diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2017-07-26 19:51:24 +0200 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2017-07-26 20:00:57 +0200 |
commit | 0c86c6a290c6ddce7732228820482a600f7520ca (patch) | |
tree | 30b48b3ebc9d8071637d6718117ad611e3c48435 /setuptools/tests/test_easy_install.py | |
parent | de05e931c35cef1d5888231fe3f4b47526bca8f7 (diff) | |
download | external_python_setuptools-0c86c6a290c6ddce7732228820482a600f7520ca.tar.gz external_python_setuptools-0c86c6a290c6ddce7732228820482a600f7520ca.tar.bz2 external_python_setuptools-0c86c6a290c6ddce7732228820482a600f7520ca.zip |
tests: minor cleanup; remove dead code
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 26cdd90d..c9d396f4 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -567,18 +567,6 @@ def create_setup_requires_package(path, distname='foobar', version='0.1', return test_pkg -def make_trivial_sdist(dist_path, setup_py): - """Create a simple sdist tarball at dist_path, containing just a - setup.py, the contents of which are provided by the setup_py string. - """ - - setup_py_file = tarfile.TarInfo(name='setup.py') - setup_py_bytes = io.BytesIO(setup_py.encode('utf-8')) - setup_py_file.size = len(setup_py_bytes.getvalue()) - with tarfile_open(dist_path, 'w:gz') as dist: - dist.addfile(setup_py_file, fileobj=setup_py_bytes) - - @pytest.mark.skipif( sys.platform.startswith('java') and ei.is_sh(sys.executable), reason="Test cannot run under java when executable is sh" |