diff --git a/python/packages/devui/tests/devui/test_cleanup_hooks.py b/python/packages/devui/tests/devui/test_cleanup_hooks.py index 8d02bfaf27..7f36f68165 100644 --- a/python/packages/devui/tests/devui/test_cleanup_hooks.py +++ b/python/packages/devui/tests/devui/test_cleanup_hooks.py @@ -3,6 +3,7 @@ """Tests for cleanup hook registration and execution.""" import asyncio +import inspect import tempfile from pathlib import Path @@ -123,7 +124,7 @@ async def test_register_cleanup_multiple_hooks(): # Execute all hooks for hook in hooks: - if asyncio.iscoroutinefunction(hook): + if inspect.iscoroutinefunction(hook): await hook() else: hook()