End support for Python 2

As planned and advertized, yamllint drops support for Python 2 on 2021.
This commit is contained in:
Adrien Vergé
2021-01-05 08:20:57 +01:00
parent ee4d163ff8
commit a3fc64d134
9 changed files with 8 additions and 55 deletions

View File

@@ -14,9 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
import unittest
from tests.common import RuleTestCase
@@ -159,7 +156,6 @@ class LineLengthTestCase(RuleTestCase):
' {% this line is' + 99 * ' really' + ' long %}\n',
conf, problem=(3, 81))
@unittest.skipIf(sys.version_info < (3, 0), 'Python 2 not supported')
def test_unicode(self):
conf = 'line-length: {max: 53}'
self.check('---\n'