Skip to content

Commit 6c48f56

Browse files
committed
ensure archive is closed.
1 parent 30b66fa commit 6c48f56

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_archive.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def temp_record():
5454
dat_path = os.path.join(tmpdir, record_basename + ".dat")
5555
archive_path = os.path.join(tmpdir, record_basename + ".wfdb")
5656

57-
WFDBArchive.create_archive(
58-
None,
59-
file_list=[hea_path, dat_path],
60-
output_path=archive_path,
61-
)
57+
with WFDBArchive(record_name=record_basename, mode="w") as archive:
58+
archive.create_archive(
59+
file_list=[hea_path, dat_path],
60+
output_path=archive_path,
61+
)
6262

6363
yield {
6464
"record_name": os.path.join(tmpdir, record_basename),

0 commit comments

Comments
 (0)