From 8aba73fe348142ebe252d6bc9bd36334bd51589c Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sat, 30 Mar 2024 22:46:33 -0400 Subject: [PATCH] fixed test failures in github runner (Python 3.10.12) --- apprise_api/api/tests/test_attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apprise_api/api/tests/test_attachment.py b/apprise_api/api/tests/test_attachment.py index 4ca6405..af6fd22 100644 --- a/apprise_api/api/tests/test_attachment.py +++ b/apprise_api/api/tests/test_attachment.py @@ -163,7 +163,7 @@ def test_direct_attachment_parsing(self, mock_get): def iter_content(chunk_size=1024, *args, **kwargs): if not ref['io']: - ref['io'] = open(SAMPLE_FILE) + ref['io'] = open(SAMPLE_FILE, 'rb') block = ref['io'].read(chunk_size) if not block: # Close for re-use