Avoid pkg_resources import at the top-level.

This commit is contained in:
Danilo Horta 2019-02-11 23:20:17 +00:00
parent 67dd10de26
commit 821b6ef2a6
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Avoid pkg_resources import at the top-level.

View File

@ -14,7 +14,6 @@ import warnings
import py
import six
from pkg_resources import parse_version
from pluggy import HookimplMarker
from pluggy import HookspecMarker
from pluggy import PluginManager
@ -815,6 +814,7 @@ class Config(object):
def _checkversion(self):
import pytest
from pkg_resources import parse_version
minver = self.inicfg.get("minversion", None)
if minver: