Skip to content

Commit

Permalink
add assertions for loop fsspec
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Oct 17, 2023
1 parent 4f01c1e commit 0a161bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uproot/source/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ async def make_fs():
)

self._fs = self._executor.submit(make_fs).result()
assert self._fs.loop is self._executor.loop, "loop not bound"
assert self._fs.loop.is_running(), "loop not running"
else:
self._executor = concurrent.futures.ThreadPoolExecutor(
max_workers=self._num_workers
Expand Down

0 comments on commit 0a161bc

Please sign in to comment.