rework session instantiation and exitstatus handling
--HG-- branch : trunk
This commit is contained in:
@@ -7,7 +7,7 @@ def test_cmdmain(name, pytestconfig):
|
||||
main = getattr(py.cmdline, name)
|
||||
assert py.builtin.callable(main)
|
||||
assert name[:2] == "py"
|
||||
if pytestconfig.getvalue("toolsonpath"):
|
||||
if not pytestconfig.getvalue("notoolsonpath"):
|
||||
scriptname = "py." + name[2:]
|
||||
assert py.path.local.sysfind(scriptname), scriptname
|
||||
|
||||
|
||||
@@ -95,7 +95,8 @@ class TestTerminal:
|
||||
item.config.pluginmanager.register(tr)
|
||||
nodeid = item.collection.getid(item)
|
||||
location = item.ihook.pytest_report_iteminfo(item=item)
|
||||
tr.config.hook.pytest_runtest_logstart(nodeid=nodeid, location=location)
|
||||
tr.config.hook.pytest_runtest_logstart(nodeid=nodeid,
|
||||
location=location, fspath=str(item.fspath))
|
||||
linecomp.assert_contains_lines([
|
||||
"*test_show_runtest_logstart.py*"
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user