def METHOD_NAME(suite, suite_test, config_override, tmpdir):
    config_override('log.core_log_level', logbook.TRACE)
    config_override('log.traceback_variables', True)
    config_override('log.root', str(tmpdir.join('logs')))
    @suite_test.prepend_body
    def __code__():          # pylint: disable=unused-variable
        # to avoid the line itself from being detected
        self = None # pylint: disable=unused-variable
    suite_test.when_run.error()
    res = suite.run()
    result = res[suite_test]
    with open(result.get_log_path()) as f:
        lines = f.read()
    assert 'self: None' in lines
    [err] = result.get_errors()
    assert 'Test exception' in str(err)