diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-09-13 11:10:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 11:10:16 (GMT) |
commit | 9260e6739865c966c3ec6c5c289e0b96f848403e (patch) | |
tree | 9c3b430240ba455658e2de8d661f20085bcdd486 /Lib | |
parent | 851811f5772c43f72f445e2ce1ac3ea9da951ae3 (diff) | |
download | cpython-9260e6739865c966c3ec6c5c289e0b96f848403e.zip cpython-9260e6739865c966c3ec6c5c289e0b96f848403e.tar.gz cpython-9260e6739865c966c3ec6c5c289e0b96f848403e.tar.bz2 |
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 "()".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/tests/test_bdist_rpm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py index 3b22af3..f1eb9ba 100644 --- a/Lib/distutils/tests/test_bdist_rpm.py +++ b/Lib/distutils/tests/test_bdist_rpm.py @@ -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') |