+diff -dur Python-2.7.10.orig/Lib/distutils/tests/test_bdist_rpm.py Python-2.7.10/Lib/distutils/tests/test_bdist_rpm.py
+--- Python-2.7.10.orig/Lib/distutils/tests/test_bdist_rpm.py 2015-05-23 18:09:02.000000000 +0200
++++ Python-2.7.10/Lib/distutils/tests/test_bdist_rpm.py 2015-12-03 09:24:55.000000000 +0100
+@@ -48,6 +48,8 @@
+ 'the rpm command is not found')
+ @unittest.skipIf(find_executable('rpmbuild') is None,
+ 'the rpmbuild command is not found')
++ @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"),
++ 'building the python rpm')
+ def test_quiet(self):
+ # let's create a package
+ tmp_dir = self.mkdtemp()
+@@ -91,6 +93,8 @@
+ 'the rpm command is not found')
+ @unittest.skipIf(find_executable('rpmbuild') is None,
+ 'the rpmbuild command is not found')
++ @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"),
++ 'building the python rpm')
+ def test_no_optimize_flag(self):
+ # let's create a package that brakes bdist_rpm
+ tmp_dir = self.mkdtemp()