Skip to content

Commit

Permalink
Avoid pkg_resources import at the top-level.
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Feb 11, 2019
1 parent 67dd10d commit 821b6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/4768.trivial.rst
@@ -0,0 +1 @@
Avoid pkg_resources import at the top-level.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Expand Up @@ -14,7 +14,6 @@

import py
import six
from pkg_resources import parse_version
from pluggy import HookimplMarker
from pluggy import HookspecMarker
from pluggy import PluginManager
Expand Down Expand Up @@ -815,6 +814,7 @@ def _preparse(self, args, addopts=True):

def _checkversion(self):
import pytest
from pkg_resources import parse_version

minver = self.inicfg.get("minversion", None)
if minver:
Expand Down

0 comments on commit 821b6ef

Please sign in to comment.