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

@@ -4,13 +4,13 @@ terminal reporting of the full testing process.
import collections
import pytest
import py
import pluggy
import sys
from _pytest.main import EXIT_NOTESTSCOLLECTED
from _pytest.terminal import TerminalReporter, repr_pythonversion, getreportopt
from _pytest.terminal import build_summary_stats_line, _plugin_nameversions
from _pytest import runner
import _pytest._pluggy as pluggy
def basic_run_report(item):
runner.call_and_report(item, "setup", log=False)