summaryrefslogtreecommitdiff
path: root/xnt/tests/xenantparamparsertests.py
diff options
context:
space:
mode:
Diffstat (limited to 'xnt/tests/xenantparamparsertests.py')
-rw-r--r--xnt/tests/xenantparamparsertests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xnt/tests/xenantparamparsertests.py b/xnt/tests/xenantparamparsertests.py
index f855dd1..1880185 100644
--- a/xnt/tests/xenantparamparsertests.py
+++ b/xnt/tests/xenantparamparsertests.py
@@ -18,7 +18,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from xnt.xenant import _process_params_
-import unittest
+import sys
+if sys.version_info[0] == 2 and sys.version_info[1] == 6:
+ import unittest2 as unittest
+else:
+ import unittest
# pylint: disable=R0904
class XenantParamParserTests(unittest.TestCase):