Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ufebl
mjtest
Commits
eaae56f4
Commit
eaae56f4
authored
Nov 13, 2016
by
Sebastian Graf
Browse files
Fixed a TypeError, trying to find 'error' in a None
parent
f3758742
Changes
1
Hide whitespace changes
Inline
Side-by-side
mjtest/test/tests.py
View file @
eaae56f4
...
...
@@ -281,7 +281,7 @@ class BasicTestResult(TestResult):
incorrect_msg
:
str
=
"incorrect return code"
):
super
().
__init__
(
test_case
,
error_code
)
self
.
_incorrect_msg
=
incorrect_msg
self
.
_contains_error_str
=
"error"
in
error_output
self
.
_contains_error_str
=
error_output
is
not
None
and
"error"
in
error_output
self
.
error_output
=
error_output
self
.
output
=
output
self
.
other_texts
=
[]
# type: List[Tuple[str, str, bool]]
...
...
@@ -420,4 +420,4 @@ class LexerDiffTest(DiffTest):
TestCase
.
TEST_CASE_CLASSES
[
TestMode
.
lexer
].
append
(
LexerDiffTest
)
import
mjtest.test.syntax_tests
import
mjtest.test.ast_tests
\ No newline at end of file
import
mjtest.test.ast_tests
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