fixed test failures in github runner (Python 3.10.12)

This commit is contained in:
Chris Caron 2024-03-30 22:46:33 -04:00
parent d33c50f466
commit 8aba73fe34

View File

@ -163,7 +163,7 @@ class AttachmentTests(SimpleTestCase):
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