Skip to content

Commit 464117b

Browse files
fix imports in tests
1 parent 1459cbe commit 464117b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

testing/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class TestCaptureManager(object):
5151

5252
def test_getmethod_default_no_fd(self, monkeypatch):
5353
from _pytest.capture import pytest_addoption
54-
from _pytest.config import Parser
54+
from _pytest.config.argparsing import Parser
5555

5656
parser = Parser()
5757
pytest_addoption(parser)

testing/test_config.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
import pytest
55

66
import _pytest._code
7-
from _pytest.config import (
8-
getcfg,
9-
get_common_ancestor,
10-
determine_setup,
11-
_iter_rewritable_modules,
12-
)
7+
from _pytest.config.findpaths import getcfg, get_common_ancestor, determine_setup
8+
from _pytest.config import _iter_rewritable_modules
139
from _pytest.main import EXIT_NOTESTSCOLLECTED
1410

1511

testing/test_parseopt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import py
66
import pytest
7-
from _pytest import config as parseopt
7+
from _pytest.config import argparsing as parseopt
88

99

1010
@pytest.fixture

0 commit comments

Comments
 (0)