]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Sep 2021 17:08:35 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 17:08:35 +0000 (10:08 -0700)
It is a decorator factory and should be always followed by "()".
(cherry picked from commit 9260e6739865c966c3ec6c5c289e0b96f848403e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/distutils/tests/test_bdist_rpm.py

index 6453a02b88f6007f5def9439b48c81b582ab486f..ba4382fb3a2fa1c5da849b54f471ab708228152b 100644 (file)
@@ -44,7 +44,7 @@ class BuildRpmTestCase(support.TempdirManager,
     # spurious sdtout/stderr output under Mac OS X
     @unittest.skipUnless(sys.platform.startswith('linux'),
                          'spurious sdtout/stderr output under Mac OS X')
-    @requires_zlib
+    @requires_zlib()
     @unittest.skipIf(find_executable('rpm') is None,
                      'the rpm command is not found')
     @unittest.skipIf(find_executable('rpmbuild') is None,
@@ -87,7 +87,7 @@ class BuildRpmTestCase(support.TempdirManager,
     # spurious sdtout/stderr output under Mac OS X
     @unittest.skipUnless(sys.platform.startswith('linux'),
                          'spurious sdtout/stderr output under Mac OS X')
-    @requires_zlib
+    @requires_zlib()
     # http://bugs.python.org/issue1533164
     @unittest.skipIf(find_executable('rpm') is None,
                      'the rpm command is not found')