~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/distutils/tests/test_bdist_rpm.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        dist_created = os.listdir(os.path.join(pkg_dir, 'dist'))
79
79
        self.assertTrue('foo-0.1-1.noarch.rpm' in dist_created)
80
80
 
 
81
        # bug #2945: upload ignores bdist_rpm files
 
82
        self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files)
 
83
        self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files)
 
84
 
81
85
    def test_no_optimize_flag(self):
82
86
 
83
87
        # XXX I am unable yet to make this test work without
117
121
 
118
122
        dist_created = os.listdir(os.path.join(pkg_dir, 'dist'))
119
123
        self.assertTrue('foo-0.1-1.noarch.rpm' in dist_created)
 
124
 
 
125
        # bug #2945: upload ignores bdist_rpm files
 
126
        self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files)
 
127
        self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files)
 
128
 
120
129
        os.remove(os.path.join(pkg_dir, 'dist', 'foo-0.1-1.noarch.rpm'))
121
130
 
122
131
def test_suite():