Remove support to pass strings to pytest.main()

Fix #3085
This commit is contained in:
Bruno Oliveira
2018-12-14 15:19:48 -02:00
parent 6e1b1abfa7
commit a7e401656e
6 changed files with 34 additions and 56 deletions

View File

@@ -17,11 +17,6 @@ from _pytest.warning_types import RemovedInPytest4Warning
from _pytest.warning_types import UnformattedWarning
MAIN_STR_ARGS = RemovedInPytest4Warning(
"passing a string to pytest.main() is deprecated, "
"pass a list of arguments instead."
)
YIELD_TESTS = "yield tests were removed in pytest 4.0 - {name} will be ignored"