CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
test_bdist_deprecations.py29 linesDownload Raw Back to tests
1"""develop tests"""2 3import sys4from unittest import mock5 6import pytest7 8from setuptools import SetuptoolsDeprecationWarning9from setuptools.dist import Distribution10 11 12@pytest.mark.skipif(sys.platform == 'win32', reason='non-Windows only')13@pytest.mark.xfail(reason="bdist_rpm is long deprecated, should we remove it? #1988")14@mock.patch('distutils.command.bdist_rpm.bdist_rpm')15def test_bdist_rpm_warning(distutils_cmd, tmpdir_cwd):16    dist = Distribution(17        dict(18            script_name='setup.py',19            script_args=['bdist_rpm'],20            name='foo',21            py_modules=['hi'],22        )23    )24    dist.parse_command_line()25    with pytest.warns(SetuptoolsDeprecationWarning):26        dist.run_commands()27 28    distutils_cmd.run.assert_called_once()29 
Aluode/PerceptionLabPortable · CoolFace