diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-21 05:55:44 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-21 05:55:44 -0400 |
| commit | cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7 (patch) | |
| tree | 1551248b2a29b34b26388ea68fe994854f3e84e2 /setuptools/tests/test_bdist_egg.py | |
| parent | 7843688bc33dd4e13e10130bc49da4c290fe7d7f (diff) | |
| parent | 060445bfb557a1d0f6b726716dafa6bacaa44c34 (diff) | |
| download | external_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.gz external_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.bz2 external_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.zip | |
Merge branch 'master' into jorikdima-master
Diffstat (limited to 'setuptools/tests/test_bdist_egg.py')
| -rw-r--r-- | setuptools/tests/test_bdist_egg.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/setuptools/tests/test_bdist_egg.py b/setuptools/tests/test_bdist_egg.py index 54742aa6..8760ea30 100644 --- a/setuptools/tests/test_bdist_egg.py +++ b/setuptools/tests/test_bdist_egg.py @@ -7,6 +7,7 @@ import zipfile import pytest from setuptools.dist import Distribution +from setuptools import SetuptoolsDeprecationWarning from . import contexts @@ -42,7 +43,7 @@ class Test: # let's see if we got our egg link at the right place [content] = os.listdir('dist') - assert re.match(r'foo-0.0.0-py[23].\d.egg$', content) + assert re.match(r'foo-0.0.0-py[23].\d+.egg$', content) @pytest.mark.xfail( os.environ.get('PYTHONDONTWRITEBYTECODE'), @@ -64,3 +65,17 @@ class Test: names = list(zi.filename for zi in zip.filelist) assert 'hi.pyc' in names assert 'hi.py' not in names + + def test_eggsecutable_warning(self, setup_context, user_override): + dist = Distribution(dict( + script_name='setup.py', + script_args=['bdist_egg'], + name='foo', + py_modules=['hi'], + entry_points={ + 'setuptools.installation': + ['eggsecutable = my_package.some_module:main_func']}, + )) + dist.parse_command_line() + with pytest.warns(SetuptoolsDeprecationWarning): + dist.run_commands() |
