From c2b7130b9f8bb5559d0a3bf616d8ce09685257ad Mon Sep 17 00:00:00 2001 From: Stephen Shen Date: Sat, 24 Jan 2026 20:59:04 -0500 Subject: [PATCH] explicitly close file --- tests/test_decode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_decode.py b/tests/test_decode.py index e92bca3..d8b3d3c 100644 --- a/tests/test_decode.py +++ b/tests/test_decode.py @@ -5,7 +5,8 @@ from utils import local_file, get_loop SILK_PATH = local_file("target.silk") -EXPECT_DATA = open(local_file("output.pcm"), "rb").read()[:30] +with open(local_file("output.pcm"), "rb") as f: + EXPECT_DATA = f.read()[:30] LOOP = get_loop()