Move setup.cfg error message and tests to an appropriate location

Those are not really deprecated anymore and are part of the normal
code for config
This commit is contained in:
Bruno Oliveira
2019-06-30 12:18:14 -03:00
parent 647d89c444
commit f2b7809d5d
4 changed files with 27 additions and 30 deletions

View File

@@ -4,30 +4,6 @@ from _pytest import deprecated
pytestmark = pytest.mark.pytester_example_path("deprecated")
def test_pytest_setup_cfg_unsupported(testdir):
testdir.makefile(
".cfg",
setup="""
[pytest]
addopts = --verbose
""",
)
with pytest.raises(pytest.fail.Exception):
testdir.runpytest()
def test_pytest_custom_cfg_unsupported(testdir):
testdir.makefile(
".cfg",
custom="""
[pytest]
addopts = --verbose
""",
)
with pytest.raises(pytest.fail.Exception):
testdir.runpytest("-c", "custom.cfg")
@pytest.mark.filterwarnings("default")
def test_resultlog_is_deprecated(testdir):
result = testdir.runpytest("--help")