mirror of
https://github.com/caronc/apprise-api.git
synced 2024-12-12 09:50:50 +01:00
fixed test failures in github runner (Python 3.10.12)
This commit is contained in:
parent
d33c50f466
commit
8aba73fe34
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user