Skip to content

Commit

Permalink
fix to use specific imports
Browse files Browse the repository at this point in the history
  • Loading branch information
scgkiran committed Sep 12, 2024
1 parent 39ff792 commit 8ec50b5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 9 deletions.
9 changes: 7 additions & 2 deletions tests/coverage/antlr_parser/FuncTestCaseLexer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Generated from FuncTestCaseLexer.g4 by ANTLR 4.13.2
from antlr4 import *
from io import StringIO
from antlr4 import (
ATNDeserializer,
DFA,
Lexer,
LexerATNSimulator,
PredictionContextCache,
)
import sys

if sys.version_info[1] > 5:
Expand Down
16 changes: 14 additions & 2 deletions tests/coverage/antlr_parser/FuncTestCaseParser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2
# encoding: utf-8
from antlr4 import *
from io import StringIO
from antlr4 import (
ATNDeserializer,
DFA,
NoViableAltException,
ParseTreeListener,
ParseTreeVisitor,
Parser,
ParserATNSimulator,
ParserRuleContext,
PredictionContextCache,
RecognitionException,
Token,
TokenStream,
)
import sys

if sys.version_info[1] > 5:
Expand Down
2 changes: 1 addition & 1 deletion tests/coverage/antlr_parser/FuncTestCaseParserListener.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2
from antlr4 import *
from antlr4 import ParseTreeListener, ParseTreeVisitor

if "." in __name__:
from .FuncTestCaseParser import FuncTestCaseParser
Expand Down
2 changes: 1 addition & 1 deletion tests/coverage/antlr_parser/FuncTestCaseParserVisitor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2
from antlr4 import *
from antlr4 import ParseTreeVisitor

if "." in __name__:
from .FuncTestCaseParser import FuncTestCaseParser
Expand Down
9 changes: 7 additions & 2 deletions tests/coverage/antlr_parser/SubstraitLexer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Generated from SubstraitLexer.g4 by ANTLR 4.13.2
from antlr4 import *
from io import StringIO
from antlr4 import (
ATNDeserializer,
DFA,
Lexer,
LexerATNSimulator,
PredictionContextCache,
)
import sys

if sys.version_info[1] > 5:
Expand Down
1 change: 0 additions & 1 deletion tests/coverage/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_parse_basic_example():
add(120::i8, 10::i8) [overflow:ERROR] = <!ERROR>
"""

test_str = header + tests
test_file = parse_string(header + tests)
assert len(test_file.testcases) == 3

Expand Down

0 comments on commit 8ec50b5

Please sign in to comment.