Use unittest2 for rhel6 compatibility

Fixes: https://pagure.io/koji/issue/830
This commit is contained in:
Tomas Kopecek 2018-02-26 11:28:01 -05:00 committed by Mike McLean
parent c633188bec
commit c68396c059
162 changed files with 1152 additions and 537 deletions

View file

@ -1,6 +1,4 @@
from __future__ import absolute_import
import unittest
import koji
import sys
import threading
@ -8,6 +6,11 @@ import traceback
from six.moves import range
import six
try:
import unittest2 as unittest
except ImportError:
import unittest
# XXX remove skip when Fedora bug is fixed
@unittest.skipIf(six.PY3, "coverage bug Fedora, see rhbz#1452339")
class ProfilesTestCase(unittest.TestCase):