diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-04-16 23:50:15 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-04-17 00:57:13 +0200 |
commit | dbd47fe3e0002d9a9c1975075d7435a15b87fb51 (patch) | |
tree | 7151c83eb63662e02defda884d7e97359d256bfb /test/__init__.py | |
parent | d7b122f17ebc23b0ea8bd0cf1df3bc854a9a595b (diff) | |
download | yamlish-dbd47fe3e0002d9a9c1975075d7435a15b87fb51.tar.gz |
Make the package compatible with python 2.70.9
There is actually unittest module now, so we have to work for the
possibility that unittest2 is not available.
Fixes #49.
Diffstat (limited to 'test/__init__.py')
-rw-r--r-- | test/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/__init__.py b/test/__init__.py index 83cdd6d..05ba3b2 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -2,7 +2,10 @@ from __future__ import absolute_import, print_function, unicode_literals import logging import yamlish -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest import yaml import tempfile import textwrap |