Add workaround to handle the testtool skip exception issue
stestr which is used by Tempest internally to run the test switch
the customize test runner(which use stdlib unittest) for >=py3.5
else testtools.run.- https://github.com/mtreinish/stestr/pull/265
These two test runner are not compatible due to skip exception
handling(due to unittest2). testtools.run treat unittestt.SkipTest
as error and stdlib unittest treat unittest2.case.SkipTest raised
by testtools.TestCase.skipException.
testtool issue: https://github.com/testing-cabal/testtools/issues/272
testtool is not so active now a days and fix is also not decided,
let's add a workaround in Tempest to make it work for both test runner
based on python version same as used by stestr
Tempest should work perfectly with stestr<2.5.0 also which is
also handled in this workaround.
Change-Id: Ie9c013d4d6851d4deef57c1e4c254a9a34374e5a
2 files changed