chore(tests): Also run tests on Python 2.6

This commit is contained in:
Adrien Vergé
2017-07-04 22:07:32 +02:00
parent 7a8cfeed6d
commit 1a961bd4b0
8 changed files with 41 additions and 10 deletions

View File

@@ -23,14 +23,19 @@ import locale
import os
import pty
import shutil
import unittest
import sys
try:
assert sys.version_info >= (2, 7)
import unittest
except:
import unittest2 as unittest
from yamllint import cli
from tests.common import build_temp_workspace
@unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported')
class CommandLineTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):