diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2020-02-16 16:07:02 +0200 |
|---|---|---|
| committer | Paul Ganssle <paul@ganssle.io> | 2020-04-21 14:09:14 -0400 |
| commit | 9bfc5fa5fd0da9254c2e95edb42da3fb65893f75 (patch) | |
| tree | c81c7675051236b86224a8eb2e70e54d4a5da155 /setuptools/tests | |
| parent | 53c284b325959a6fd177e9d37d8b5dd5824db2b3 (diff) | |
| download | python-setuptools-git-9bfc5fa5fd0da9254c2e95edb42da3fb65893f75.tar.gz | |
Deprecate bdist_wininst
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_bdist_deprecations.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/setuptools/tests/test_bdist_deprecations.py b/setuptools/tests/test_bdist_deprecations.py new file mode 100644 index 00000000..704164aa --- /dev/null +++ b/setuptools/tests/test_bdist_deprecations.py @@ -0,0 +1,23 @@ +"""develop tests +""" +import mock + +import pytest + +from setuptools.dist import Distribution +from setuptools import SetuptoolsDeprecationWarning + + +@mock.patch("distutils.command.bdist_wininst.bdist_wininst") +def test_bdist_wininst_warning(distutils_cmd): + dist = Distribution(dict( + script_name='setup.py', + script_args=['bdist_wininst'], + name='foo', + py_modules=['hi'], + )) + dist.parse_command_line() + with pytest.warns(SetuptoolsDeprecationWarning): + dist.run_commands() + + distutils_cmd.run.assert_called_once() |
