]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 13 Sep 2021 11:10:16 +0000 (14:10 +0300)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 11:10:16 +0000 (14:10 +0300)
It is a decorator factory and should be always followed by "()".

Lib/distutils/tests/test_bdist_rpm.py

index 3b22af3a90f962fcd05b54928e3481cc1ee1141f..f1eb9ba44938284025a4d3f7395852ef10ed8ef3 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')