mirror of
https://github.com/vee1e/capa.git
synced 2026-09-02 11:17:18 +00:00
tests: simplify loading of result document from file
This commit is contained in:
parent
840145f947
commit
c52b0a22e0
1 changed files with 1 additions and 4 deletions
|
|
@ -1109,10 +1109,7 @@ def _039a6_dotnetfile_extractor():
|
|||
|
||||
|
||||
def get_result_doc(path):
|
||||
with open(path, "rb") as f:
|
||||
buf = f.read()
|
||||
src = buf.decode("utf-8")
|
||||
return capa.render.result_document.ResultDocument.parse_raw(src)
|
||||
return capa.render.result_document.ResultDocument.parse_file(path)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue