Avoid pkg_resources import at the top-level.
This commit is contained in:
parent
67dd10de26
commit
821b6ef2a6
|
@ -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
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue