Fix tests for python 2.6
It failed to build RHEL 6 package as logging.NullHandler does not exist in python 2.6 JIRA: RHELCMP-7188 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
cfb9882269
commit
f681956cf1
@ -1329,7 +1329,7 @@ class CreateisoTryReusePhaseTest(helpers.PungiTestCase):
|
||||
super(CreateisoTryReusePhaseTest, self).setUp()
|
||||
self.logger = logging.getLogger()
|
||||
self.logger.setLevel(logging.DEBUG)
|
||||
self.logger.addHandler(logging.NullHandler())
|
||||
self.logger.addHandler(logging.StreamHandler(os.devnull))
|
||||
|
||||
def test_disabled(self):
|
||||
compose = helpers.DummyCompose(self.topdir, {"createiso_allow_reuse": False})
|
||||
|
@ -1064,7 +1064,7 @@ class ExtraisoTryReusePhaseTest(helpers.PungiTestCase):
|
||||
super(ExtraisoTryReusePhaseTest, self).setUp()
|
||||
self.logger = logging.getLogger()
|
||||
self.logger.setLevel(logging.DEBUG)
|
||||
self.logger.addHandler(logging.NullHandler())
|
||||
self.logger.addHandler(logging.StreamHandler(os.devnull))
|
||||
|
||||
def test_disabled(self):
|
||||
compose = helpers.DummyCompose(self.topdir, {"extraiso_allow_reuse": False})
|
||||
|
Loading…
Reference in New Issue
Block a user