aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_writer.py')
-rw-r--r--test/test_writer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_writer.py b/test/test_writer.py
index 7d9e690..a3f3893 100644
--- a/test/test_writer.py
+++ b/test/test_writer.py
@@ -1,7 +1,10 @@
# -*- 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
import test
import yamlish