1
0
forked from VimPlug/jedi

Small correction: mixed up a re.match and re.search.

This commit is contained in:
Dave Halter
2015-02-20 00:48:05 +01:00
parent ce96af5e04
commit 0b5a509e83
2 changed files with 3 additions and 3 deletions

View File

@@ -324,10 +324,10 @@ def test_wrong_indentation():
def test_open_parentheses():
func = 'def func():\n a'
p = FastParser(load_grammar(), 'isinstance(\n' + func)
p = FastParser(load_grammar(), 'isinstance(\n\n' + func)
# As you can see, the isinstance call cannot be seen anymore after
# get_code, because it isn't valid code.
assert p.module.get_code() == '\n' + func
assert p.module.get_code() == '\n\n' + func
assert p.number_of_splits == 2
assert p.number_parsers_used == 2
cache.save_parser(None, None, p, pickling=False)