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): def test_getmethod_default_no_fd(self, monkeypatch):
from _pytest.capture import pytest_addoption from _pytest.capture import pytest_addoption
from _pytest.config import Parser from _pytest.config.argparsing import Parser
parser = Parser() parser = Parser()
pytest_addoption(parser) pytest_addoption(parser)

View File

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

View File

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