diff options
Diffstat (limited to 'tests/06_test_upstream_source.py')
-rw-r--r-- | tests/06_test_upstream_source.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/06_test_upstream_source.py b/tests/06_test_upstream_source.py index c6df6f14..6b2a1a1e 100644 --- a/tests/06_test_upstream_source.py +++ b/tests/06_test_upstream_source.py @@ -9,7 +9,11 @@ import os import shutil import tarfile import tempfile -import unittest +# Try unittest2 for CentOS +try: + import unittest2 as unittest +except ImportError: + import unittest import zipfile from gbp.pkg import UpstreamSource |