Drop support for EOL Python 2.6

This commit is contained in:
Hugo
2018-11-24 11:29:07 +02:00
committed by Adrien Vergé
parent 8bdddf6e89
commit c281d48507
8 changed files with 10 additions and 51 deletions

View File

@@ -19,17 +19,12 @@ import shutil
import subprocess
import tempfile
import sys
try:
assert sys.version_info >= (2, 7)
import unittest
except AssertionError:
import unittest2 as unittest
import unittest
PYTHON = sys.executable or 'python'
@unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported')
class ModuleTestCase(unittest.TestCase):
def setUp(self):
self.wd = tempfile.mkdtemp(prefix='yamllint-tests-')