Skip to content

Commit 9260e67

Browse files
bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)
It is a decorator factory and should be always followed by "()".
1 parent 851811f commit 9260e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/distutils/tests/test_bdist_rpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def tearDown(self):
4444
# spurious sdtout/stderr output under Mac OS X
4545
@unittest.skipUnless(sys.platform.startswith('linux'),
4646
'spurious sdtout/stderr output under Mac OS X')
47-
@requires_zlib
47+
@requires_zlib()
4848
@unittest.skipIf(find_executable('rpm') is None,
4949
'the rpm command is not found')
5050
@unittest.skipIf(find_executable('rpmbuild') is None,
@@ -87,7 +87,7 @@ def test_quiet(self):
8787
# spurious sdtout/stderr output under Mac OS X
8888
@unittest.skipUnless(sys.platform.startswith('linux'),
8989
'spurious sdtout/stderr output under Mac OS X')
90-
@requires_zlib
90+
@requires_zlib()
9191
# http://bugs.python.org/issue1533164
9292
@unittest.skipIf(find_executable('rpm') is None,
9393
'the rpm command is not found')

0 commit comments

Comments
 (0)