diff options
-rw-r--r-- | tests/18_test_Config.py | 6 |
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 |