pylint-bot/astroid-unofficial

Enum support should be tested with PyPi backport

Closed this issue · 1 comments

Originally reported by: BitBucket: ceridwenv, GitHub: ceridwenv


At the moment, the brain tests only try to import the stdlib version of enum:

try:
    import enum # pylint: disable=unused-import
    HAS_ENUM = True
except ImportError:
    HAS_ENUM = False

This should be extended to include the backport for earlier Python versions, https://pypi.python.org/pypi/enum34.


Original comment by BitBucket: ceridwenv, GitHub: ceridwenv:


Added in b68ee1186e5f.