diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 12:35:21 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 12:35:21 -0500 |
commit | 9419ec6858f28bc23fde222c223cc20dc28a0874 (patch) | |
tree | 612992d4dcfb0bc5f95e732d3d7ba0261eb35b64 | |
parent | 000d9ed18eb3849d2c825c043133891e2e6f6680 (diff) | |
download | external_python_setuptools-9419ec6858f28bc23fde222c223cc20dc28a0874.tar.gz external_python_setuptools-9419ec6858f28bc23fde222c223cc20dc28a0874.tar.bz2 external_python_setuptools-9419ec6858f28bc23fde222c223cc20dc28a0874.zip |
Add test capturing failure. Ref #319.
-rw-r--r-- | setuptools/tests/test_easy_install.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 590fce9b..46c2df2c 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -275,6 +275,23 @@ class TestUserInstallTest(unittest.TestCase): pass +@pytest.yield_fixture +def distutils_package(): + distutils_setup_py = SETUP_PY.replace( + 'from setuptools import setup', + 'from distutils.core import setup', + ) + with tempdir_context(cd=os.chdir): + with open('setup.py', 'w') as f: + f.write(distutils_setup_py) + yield + + +class TestDistutilsPackage: + def test_bdist_egg_available_on_distutils_pkg(self, distutils_package): + run_setup('setup.py', ['bdist_egg']) + + class TestSetupRequires(unittest.TestCase): def test_setup_requires_honors_fetch_params(self): |