Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uqdwn
mjtest
Commits
8f83c3c7
Commit
8f83c3c7
authored
Dec 02, 2016
by
Johannes Bechberger
Browse files
Modify some test cases to prevent them from allocating too much
parent
877f1512
Changes
1
Hide whitespace changes
Inline
Side-by-side
mjtest/test/exec_tests.py
View file @
8f83c3c7
...
...
@@ -153,7 +153,10 @@ class JavaExecTest(BasicSyntaxTest):
def
_check_hash_sum
(
self
,
file
:
str
,
hash_sum_file
:
str
)
->
bool
:
old_hash
=
""
with
open
(
hash_sum_file
,
"r"
)
as
f
:
old_hash
=
f
.
readline
().
strip
()
try
:
old_hash
=
f
.
readline
().
strip
()
except
UnicodeDecodeError
:
_LOG
.
exception
(
"Decoding a hash sum for java output caching failed"
)
return
self
.
_hash_sum_for_file
(
file
)
==
old_hash
def
_hash_sum_for_file
(
self
,
file
:
str
)
->
str
:
...
...
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