summaryrefslogtreecommitdiff
path: root/xnt/tests/xenantargparsertests.py
diff options
context:
space:
mode:
Diffstat (limited to 'xnt/tests/xenantargparsertests.py')
-rw-r--r--xnt/tests/xenantargparsertests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xnt/tests/xenantargparsertests.py b/xnt/tests/xenantargparsertests.py
index 3e79a80..d32893a 100644
--- a/xnt/tests/xenantargparsertests.py
+++ b/xnt/tests/xenantargparsertests.py
@@ -18,7 +18,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import xnt.xenant
-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 XenantArgParserTests(unittest.TestCase):