diff --git a/tests/test_files.py b/tests/test_files.py index d6a022aa1..0f7ca5707 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -18,6 +18,7 @@ import collections import datetime +import io import os from typing import Iterable, Sequence import pathlib @@ -38,7 +39,7 @@ def __init__(self, test): def create_file( self, - path: str | pathlib.Path | os.PathLike, + path: str | io.IOBase | os.PathLike, *, mime_type: str | None = None, name: str | None = None,