pipeline was failing with decode error

I could not reproduce it, maybe this helps
This commit is contained in:
Martin Diehl 2023-02-04 12:42:56 +01:00
parent b818ec6885
commit 12d1e9be65
1 changed files with 2 additions and 2 deletions

View File

@ -397,8 +397,8 @@ class TestResult:
v = VTK.load(tmp_path/fname)
v.comments = ['n/a']
v.save(tmp_path/fname,parallel=False)
with open(tmp_path/fname) as f:
cur = hashlib.md5(f.read().encode()).hexdigest()
with open(tmp_path/fname,'rb') as f:
cur = hashlib.md5(f.read()).hexdigest()
if update:
with open((ref_path/'export_VTK'/request.node.name).with_suffix('.md5'),'w') as f:
f.write(cur+'\n')