diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-05 12:41:47 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-05 12:41:47 (GMT) |
commit | cd2a6033ac0bafd69a7cba2d132e092127acc895 (patch) | |
tree | 4e5d6c97edcf7056659a37371a24da12ef018172 /Lib/distutils/tests | |
parent | bd249c1bae9e70368ca190ca8e60b3e5343e9344 (diff) | |
parent | 89dfd5cf80965fcf1d3fe4db8268f8acc67b5f64 (diff) | |
download | cpython-cd2a6033ac0bafd69a7cba2d132e092127acc895.zip cpython-cd2a6033ac0bafd69a7cba2d132e092127acc895.tar.gz cpython-cd2a6033ac0bafd69a7cba2d132e092127acc895.tar.bz2 |
Branch merge
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r-- | Lib/distutils/tests/test_bdist_rpm.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py index 804fb13..ab7a1bf 100644 --- a/Lib/distutils/tests/test_bdist_rpm.py +++ b/Lib/distutils/tests/test_bdist_rpm.py @@ -78,6 +78,10 @@ class BuildRpmTestCase(support.TempdirManager, dist_created = os.listdir(os.path.join(pkg_dir, 'dist')) self.assertTrue('foo-0.1-1.noarch.rpm' in dist_created) + # bug #2945: upload ignores bdist_rpm files + self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files) + self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files) + def test_no_optimize_flag(self): # XXX I am unable yet to make this test work without @@ -117,6 +121,11 @@ class BuildRpmTestCase(support.TempdirManager, dist_created = os.listdir(os.path.join(pkg_dir, 'dist')) self.assertTrue('foo-0.1-1.noarch.rpm' in dist_created) + + # bug #2945: upload ignores bdist_rpm files + self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files) + self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files) + os.remove(os.path.join(pkg_dir, 'dist', 'foo-0.1-1.noarch.rpm')) def test_suite(): |