From dbd47fe3e0002d9a9c1975075d7435a15b87fb51 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 16 Apr 2012 23:50:15 +0200 Subject: Make the package compatible with python 2.7 There is actually unittest module now, so we have to work for the possibility that unittest2 is not available. Fixes #49. --- test/test_reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_reader.py') diff --git a/test/test_reader.py b/test/test_reader.py index 0676b30..a34104c 100644 --- a/test/test_reader.py +++ b/test/test_reader.py @@ -3,7 +3,10 @@ from __future__ import absolute_import, print_function, unicode_literals import yaml import yamlish import test -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest test_data_list = [ { -- cgit