'Precedence calculation can slow down things significantly in edge
cases. Having strange recursion structures increases the problem.'

@_check_speed(0.8)
@cwd_at('test')
def test_precedence_slowdown(self):

    with open('speed/precedence.py') as f:
        line = len(f.read().splitlines())
    assert jedi.Script(line=line, path='speed/precedence.py').goto_definitions()
