summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-03 12:12:02 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-03 12:13:07 +0300
commit4acf0cdbe6da525ea0c0509b5a283177fd540413 (patch)
tree483de45b28fe93d9633564edb14f10c1e6dddb78
parenta064d2a8fc6f5437c6d2660167c3f779fbd21897 (diff)
downloadgit-buildpackage-4acf0cdbe6da525ea0c0509b5a283177fd540413.tar.gz
git-buildpackage-4acf0cdbe6da525ea0c0509b5a283177fd540413.tar.bz2
git-buildpackage-4acf0cdbe6da525ea0c0509b5a283177fd540413.zip
CentOS compatibility: fix cherry-picked tests
Change-Id: I821ba7173ba0abc4251edd987a0bce5b13e2fd33 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--tests/18_test_Config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/18_test_Config.py b/tests/18_test_Config.py
index 701288b4..58c333ce 100644
--- a/tests/18_test_Config.py
+++ b/tests/18_test_Config.py
@@ -1,7 +1,11 @@
# vim: set fileencoding=utf-8 :
import os
-import unittest
+# Try unittest2 for CentOS
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
from gbp.config import GbpOptionParser
from . import context