fix imports in tests

This commit is contained in:
Ronny Pfannschmidt 2018-06-05 10:20:36 +02:00
parent 1459cbe01f
commit 464117b472
3 changed files with 4 additions and 8 deletions

View File

@ -51,7 +51,7 @@ class TestCaptureManager(object):
def test_getmethod_default_no_fd(self, monkeypatch):
from _pytest.capture import pytest_addoption
from _pytest.config import Parser
from _pytest.config.argparsing import Parser
parser = Parser()
pytest_addoption(parser)

View File

@ -4,12 +4,8 @@ import textwrap
import pytest
import _pytest._code
from _pytest.config import (
getcfg,
get_common_ancestor,
determine_setup,
_iter_rewritable_modules,
)
from _pytest.config.findpaths import getcfg, get_common_ancestor, determine_setup
from _pytest.config import _iter_rewritable_modules
from _pytest.main import EXIT_NOTESTSCOLLECTED

View File

@ -4,7 +4,7 @@ import sys
import os
import py
import pytest
from _pytest import config as parseopt
from _pytest.config import argparsing as parseopt
@pytest.fixture