Actually implement the load_grammar properly.

This commit is contained in:
Dave Halter
2017-05-25 16:45:29 -04:00
parent b037321d1e
commit 6283577bc3
3 changed files with 69 additions and 19 deletions

View File

@@ -158,15 +158,6 @@ def test_python3_octal():
assert module.children[0].type == 'error_node'
def test_load_newer_grammar():
# This version shouldn't be out for a while, but if we somehow get this it
# should just take the latest Python grammar.
load_grammar('15.8')
# The same is true for very old grammars (even though this is probably not
# going to be an issue.
load_grammar('1.5')
@pytest.mark.parametrize('code', ['foo "', 'foo """\n', 'foo """\nbar'])
def test_open_string_literal(code):
"""