提交 00acaf88 编写于 作者: L Lucas Meneghel Rodrigues

tests/rv_input: Fix use of reserved keyword file

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 078bae9f
......@@ -248,9 +248,9 @@ def analyze_results(file_path, test_type):
correct_keycodes = ['97', '312', '65', '49', '65', '49']
#Read caught keycodes on guest machine
file = open(file_path, "r")
keycodes = file.read()
file.close()
fileobj = open(file_path, "r")
keycodes = fileobj.read()
fileobj.close()
#Compare caught keycodes with expected keycodes
test_keycodes = keycodes.split(",")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册