Merge pull request #4768 from horta/avoid-pkg_resources
Avoid pkg_resources import at the top-level.
This commit is contained in:
commit
236bada755
|
@ -0,0 +1 @@
|
|||
Avoid pkg_resources import at the top-level.
|
|
@ -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
|
||||
|
@ -845,6 +844,7 @@ class Config(object):
|
|||
|
||||
def _checkversion(self):
|
||||
import pytest
|
||||
from pkg_resources import parse_version
|
||||
|
||||
minver = self.inicfg.get("minversion", None)
|
||||
if minver:
|
||||
|
|
Loading…
Reference in New Issue