Create _pytest.vendored_packages and _pytest._pluggy

- Replace imports from "pluggy" to "_pytest._pluggy"
- Fallback to import "pluggy" from global namespace if
  not found in _pytest.vendored_packges
This commit is contained in:
Bruno Oliveira
2015-08-25 19:43:09 -03:00
parent e622975ffd
commit 0b3f1b4a7c
12 changed files with 805 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import py
# DON't import pytest here because it causes import cycle troubles
import sys, os
import _pytest.hookspec # the extension point definitions
from pluggy import PluginManager, HookimplMarker, HookspecMarker
from _pytest._pluggy import PluginManager, HookimplMarker, HookspecMarker
hookimpl = HookimplMarker("pytest")
hookspec = HookspecMarker("pytest")