
17 Oct
2016
17 Oct
'16
8:11 p.m.
On 10/16/2016 12:17 PM, Stefan BrĂ¼ns wrote:
If the parameter set is empty, the pytest setup fails:
call: <CallInfo when='setup' exception: got empty parameter set ['env__dfu_config'], function test_dfu at [...]test_dfu.py:107>
This aborts pytest_runtest_makereport and later leads to an exception during the report generation, as the call to log.start_section(...) is never executed:
Exception: Block nesting mismatch: "test_dfu[env__usb_dev_port0-env__dfu_config0]" ""
How do you trigger this? I believe my test setup has many cases where the test you added would trigger, but without the issues you mention, but I'm not 100% sure since I don't know for sure what is causing this issue.
Which pytest version do you have? I appear to have 2.5.1 (on Ubuntu Trusty)