aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_load.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_load.py')
-rw-r--r--test/test_load.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_load.py b/test/test_load.py
index b5ac95e..7a76ae1 100644
--- a/test/test_load.py
+++ b/test/test_load.py
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
-import unittest2 as unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
class TestBasics(unittest.TestCase):
def test_import(self):