From 8c8aa433d0e69b1d5689ee087ca1d993e8219f33 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 20 Nov 2024 13:00:27 -0600 Subject: [PATCH] chore: support newer pyee --- test/unittests/test_event_scheduler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/unittests/test_event_scheduler.py b/test/unittests/test_event_scheduler.py index 5f2dcd7..dc00e74 100644 --- a/test/unittests/test_event_scheduler.py +++ b/test/unittests/test_event_scheduler.py @@ -4,7 +4,10 @@ import unittest import time -from pyee import ExecutorEventEmitter +try: + from pyee import ExecutorEventEmitter +except (ImportError, ModuleNotFoundError): + from pyee.executor import ExecutorEventEmitter from unittest.mock import MagicMock, patch from ovos_utils.messagebus import FakeBus