mirror of
https://github.com/caronc/apprise-api.git
synced 2025-07-10 19:16:47 +02:00
fixed test failures in github runner (Python 3.10.12)
This commit is contained in:
@ -163,7 +163,7 @@ class AttachmentTests(SimpleTestCase):
|
|||||||
|
|
||||||
def iter_content(chunk_size=1024, *args, **kwargs):
|
def iter_content(chunk_size=1024, *args, **kwargs):
|
||||||
if not ref['io']:
|
if not ref['io']:
|
||||||
ref['io'] = open(SAMPLE_FILE)
|
ref['io'] = open(SAMPLE_FILE, 'rb')
|
||||||
block = ref['io'].read(chunk_size)
|
block = ref['io'].read(chunk_size)
|
||||||
if not block:
|
if not block:
|
||||||
# Close for re-use
|
# Close for re-use
|
||||||
|
Reference in New Issue
Block a user