mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-18 20:01:25 +08:00
Use enum instead of our own logic
This commit is contained in:
1 parent
a0662b3b3b
commit
19f4550ced
3 files changed
+18
-17
No files matched your search
+1
-1
@@ -351,7 +351,7 @@ def test_left_recursion():
|
||||
@pytest.mark.parametrize(
|
||||
'grammar, error_match', [
|
||||
['foo: bar | baz\nbar: NAME\nbaz: NAME\n',
|
||||
r"foo is ambiguous.*given a TokenType\(NAME\).*bar or baz"],
|
||||
r"foo is ambiguous.*given a PythonTokenTypes\.NAME.*bar or baz"],
|
||||
['''foo: bar | baz\nbar: 'x'\nbaz: "x"\n''',
|
||||
r"foo is ambiguous.*given a ReservedString\(x\).*bar or baz"],
|
||||
['''foo: bar | 'x'\nbar: 'x'\n''',
|
||||
|
||||
Reference in new issue
Block a user