From 87d916ad114d8fdc568e1de688f60836d9c18c00 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 19 Apr 2021 09:01:18 +0200 Subject: Remove python < 3.4 compatibility code for enum module --- tests/unittest_brain.py | 18 ------------------ tox.ini | 1 - 2 files changed, 19 deletions(-) diff --git a/tests/unittest_brain.py b/tests/unittest_brain.py index 7b358796..4eee0465 100644 --- a/tests/unittest_brain.py +++ b/tests/unittest_brain.py @@ -46,18 +46,6 @@ except ImportError: import sys import unittest -try: - import enum # pylint: disable=unused-import - - HAS_ENUM = True -except ImportError: - try: - import enum34 as enum # pylint: disable=unused-import - - HAS_ENUM = True - except ImportError: - HAS_ENUM = False - try: import nose # pylint: disable=unused-import @@ -654,12 +642,6 @@ class ThreadingBrainTest(unittest.TestCase): self.assertIsInstance(next(inferred.igetattr(method)), astroid.BoundMethod) -@unittest.skipUnless( - HAS_ENUM, - "The enum module was only added in Python 3.4. Support for " - "older Python versions may be available through the enum34 " - "compatibility module.", -) class EnumBrainTest(unittest.TestCase): def test_simple_enum(self): module = builder.parse( diff --git a/tox.ini b/tox.ini index c856f713..7cf8670e 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,6 @@ pylint: git+https://github.com/pycqa/pylint@master [testenv] deps = pypy: backports.functools_lru_cache - pypy: enum34 lazy-object-proxy==1.4.* ; we have a brain for nose ; we use pytest for tests -- cgit v1.2.1