Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
743a16bb
Commit
743a16bb
authored
Oct 22, 2018
by
di68kap
Browse files
- Missing quotation marks in error message
parent
1eb02871
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/testing.py
View file @
743a16bb
...
...
@@ -389,7 +389,7 @@ def grammar_unit(test_unit, parser_factory, transformer_factory, report=True, ve
except
UnknownParserError
as
upe
:
node
=
Node
(
ZOMBIE_PARSER
,
""
).
init_pos
(
0
)
cst
=
RootNode
(
node
).
new_error
(
node
,
str
(
upe
))
errata
.
append
(
'Unknown parser {} in fail test {}!'
.
format
(
parser_name
,
test_name
))
errata
.
append
(
'Unknown parser
"
{}
"
in fail test
"
{}
"
!'
.
format
(
parser_name
,
test_name
))
tests
.
setdefault
(
'__err__'
,
{})[
test_name
]
=
errata
[
-
1
]
if
not
is_error
(
cst
.
error_flag
):
errata
.
append
(
'Fail test "%s" for parser "%s" yields match instead of '
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment