tests: fix one more "unclosed file" issue

This commit is contained in:
Julien Cristau 2022-09-01 12:44:36 +02:00
Родитель ea375fdcce
Коммит 0e0c6072da
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -278,8 +278,8 @@ def test_add_signature(tmpdir, mar_cue, test_keys):
assert m1.verify(public_key)
# Assert file contents are the same
with dest_mar.open('rb') as f, MarReader(f) as m1:
with MarReader(mar_cue.open('rb')) as m:
with dest_mar.open('rb') as f1, MarReader(f1) as m1:
with mar_cue.open('rb') as f, MarReader(f) as m:
offset_delta = m1.mardata.data_offset - m.mardata.data_offset
for (e, e1) in zip(m.mardata.index.entries, m1.mardata.index.entries):
assert e.name == e1.name