Use unittest2.TestSuite with py26

The tempest master branch with tox -efull with py26 command,
produces a lot of tierDownClass failures,
because it tries to tearDown an already tearDowned class.

By switching to unittest2.TestSuite the issue is solved.

Change-Id: I7a5d21af62bafb13cdc8a0dcc20ed3f742aa214f
This commit is contained in:
Attila Fazekas 2014-01-25 16:55:12 +01:00
parent 93daa28712
commit efe84bb451
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@
# under the License.
import os
import unittest
import sys
if sys.version_info >= (2, 7):
import unittest
else:
import unittest2 as unittest
def load_tests(loader, tests, pattern):