Fix tests on python-2.6

This commit is contained in:
ZyX 2013-04-06 19:01:59 +04:00
parent b1fecebd53
commit 5b8b3599be
2 changed files with 3 additions and 2 deletions

View File

@ -2,5 +2,7 @@
import sys
if sys.version_info < (2, 7):
from unittest2 import TestCase, main # NOQA
from unittest2.case import SkipTest # NOQA
else:
from unittest import TestCase, main # NOQA
from unittest.case import SkipTest # NOQA

View File

@ -5,9 +5,8 @@ from powerline.lib.vcs import guess
from subprocess import call, PIPE
import os
import sys
from unittest.case import SkipTest
from functools import partial
from tests import TestCase
from tests import TestCase, SkipTest
class TestLib(TestCase):