diff options
author | Paul Ganssle <paul@ganssle.io> | 2018-11-12 10:08:55 -0500 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2018-11-12 10:14:34 -0500 |
commit | 2b5b91332a01c665cab77ad7962e87525850d7f5 (patch) | |
tree | 47a33d231d1eab2b0f9bff524f1213c6244af67b /setuptools/tests | |
parent | fe2c9e4292699635c91174bc049aefe81bf6116c (diff) | |
download | external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.tar.gz external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.tar.bz2 external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.zip |
Remove bdist_rpm and bdist_dumb comment
This comment is not used anywhere and `platform.dist()` is deprecated.
See CPython PR #10414: https://github.com/python/cpython/pull/10414
and bpo-35186: https://bugs.python.org/issue35186
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_upload.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/setuptools/tests/test_upload.py b/setuptools/tests/test_upload.py index 319ed7a2..9229bba1 100644 --- a/setuptools/tests/test_upload.py +++ b/setuptools/tests/test_upload.py @@ -203,26 +203,6 @@ class TestUploadTest: entries = patched_upload.get_uploaded_metadata() assert entries['gpg_signature'] == 'signed-data' - @pytest.mark.parametrize('bdist', ['bdist_rpm', 'bdist_dumb']) - @mock.patch('setuptools.command.upload.platform') - def test_bdist_rpm_upload(self, platform, bdist, patched_upload): - # Set the upload command to include bdist_rpm - cmd = patched_upload.cmd - dist_files = cmd.distribution.dist_files - dist_files = [(bdist,) + dist_files[0][1:]] - cmd.distribution.dist_files = dist_files - - # Mock out the platform commands to make this platform-independent - platform.dist.return_value = ('redhat', '', '') - - cmd.ensure_finalized() - cmd.run() - - entries = patched_upload.get_uploaded_metadata() - - assert entries['comment'].startswith(u'built for') - assert len(entries['comment']) > len(u'built for') - def test_show_response_no_error(self, patched_upload): # This test is just that show_response doesn't throw an error # It is not really important what the printed response looks like |