Project Name: davidhalter+jedi-vim
Language: Python
Statement Type: Constant Assignment

Source Code:
def test_integration(install_vspec, path):
    output = subprocess.check_output(
        [VSPEC_RUNNER, '.', VSPEC_FOLDER, os.path.relpath(path, root)],
        cwd=root,
    )
    had_ok = False
    for line in output.splitlines():
        if (line.startswith(b'not ok') or
                line.startswith(b'Error') or
                line.startswith(b'Bail out!')):
            pytest.fail(u"{0} failed:\n{1}".format(
                path, output.decode('utf-8')), pytrace=False)
        if not had_ok and line.startswith(b'ok'):
            had_ok = True
    if not had_ok:
        pytest.fail(u"{0} failed: no 'ok' found:\n{1}".format(
            path, output.decode('utf-8')), pytrace=False)

test_integration(install_vspec=None, path='test/vspec/signatures.vim')

Selected Statement: had_ok = False

Function Input:
install_vspec: None
path: 'test/vspec/signatures.vim'

Variable Values Before Statement:
Constant: False

Value After Statement Execution: False

Variable States During Runtime (line, value):
install_vspec: 1
None
path: 1
'test/vspec/signatures.vim'
output: 2
b'not found in \'runtimepath\': "ftdetect/*.vim"\nok 1 - signatures simple\n4 buffers wiped out\n--- Autocommands ---\njedi_call_signatures  CursorHoldI\n<buffer=6>\ncall jedi#show_call_signatures()\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612\njedi_call_signatures  InsertEnter\n<buffer=6>\nlet s:show_call_signatures_last = [0, 0, \'\']\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603\nlet b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606\njedi_call_signatures  InsertLeave\n<buffer=6>\ncall jedi#clear_call_signatures()\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604\nif exists(\'b:_jedi_orig_updatetime\') |   let &updatetime = b:_jedi_orig_updatetime |   unlet b:_jedi_orig_updatetime | endif\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608\n--- Autocommands ---\njedi_call_signatures  CursorHoldI\n<buffer=5>\ncall jedi#show_call_signatures()\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612\njedi_call_signatures  InsertEnter\n<buffer=5>\nlet s:show_call_signatures_last = [0, 0, \'\']\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603\nlet b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606\njedi_call_signatures  InsertLeave\n<buffer=5>\ncall jedi#clear_call_signatures()\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604\nif exists(\'b:_jedi_orig_updatetime\') |   let &updatetime = b:_jedi_orig_updatetime |   unlet b:_jedi_orig_updatetime | endif\n\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608\nok 2 - signatures multiple buffers\n2 buffers wiped out\nok 3 - signatures simple after CursorHoldI with only parenthesis\nok 4 - signatures highlights correct argument\nok 5 - signatures no signature\nok 6 - signatures signatures disabled\nstaticmethod(f: Callable[..., Any])\nfoo(a, b)\nok 7 - signatures command line simple\x07\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(arg1, \xe2\x80\xa6)\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, arg2, \xe2\x80\xa6)\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, a, b, c)\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, c)\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6)\nok 8 - signatures command line truncation\nok 9 - signatures command line no signature\n1..9\n'
had_ok: 6
False
14
True
line: 7
b'not found in \'runtimepath\': "ftdetect/*.vim"'
7
b'ok 1 - signatures simple'
7
b'4 buffers wiped out'
7
b'--- Autocommands ---'
7
b'jedi_call_signatures  CursorHoldI'
7
b'<buffer=6>'
7
b'call jedi#show_call_signatures()'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612'
7
b'jedi_call_signatures  InsertEnter'
7
b'<buffer=6>'
7
b"let s:show_call_signatures_last = [0, 0, '']"
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603'
7
b'let b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606'
7
b'jedi_call_signatures  InsertLeave'
7
b'<buffer=6>'
7
b'call jedi#clear_call_signatures()'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604'
7
b"if exists('b:_jedi_orig_updatetime') |   let &updatetime = b:_jedi_orig_updatetime |   unlet b:_jedi_orig_updatetime | endif"
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608'
7
b'--- Autocommands ---'
7
b'jedi_call_signatures  CursorHoldI'
7
b'<buffer=5>'
7
b'call jedi#show_call_signatures()'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 612'
7
b'jedi_call_signatures  InsertEnter'
7
b'<buffer=5>'
7
b"let s:show_call_signatures_last = [0, 0, '']"
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 603'
7
b'let b:_jedi_orig_updatetime = &updatetime | let &updatetime = g:jedi#show_call_signatures_delay'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 606'
7
b'jedi_call_signatures  InsertLeave'
7
b'<buffer=5>'
7
b'call jedi#clear_call_signatures()'
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 604'
7
b"if exists('b:_jedi_orig_updatetime') |   let &updatetime = b:_jedi_orig_updatetime |   unlet b:_jedi_orig_updatetime | endif"
7
b'\tLast set from /local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/davidhalter+jedi-vim/davidhalter+jedi-vim/autoload/jedi.vim line 608'
7
b'ok 2 - signatures multiple buffers'
7
b'2 buffers wiped out'
7
b'ok 3 - signatures simple after CursorHoldI with only parenthesis'
7
b'ok 4 - signatures highlights correct argument'
7
b'ok 5 - signatures no signature'
7
b'ok 6 - signatures signatures disabled'
7
b'staticmethod(f: Callable[..., Any])'
7
b'foo(a, b)'
7
b'ok 7 - signatures command line simple\x07'
7
b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(arg1, \xe2\x80\xa6)'
7
b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, arg2, \xe2\x80\xa6)'
7
b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, a, b, c)'
7
b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6, c)'
7
b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\xe2\x80\xa6)'
7
b'ok 8 - signatures command line truncation'
7
b'ok 9 - signatures command line no signature'
7
b'1..9'