Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: flaky test with PytestUnraisableExceptionWarning (#3346)
Gabe Milani2c2196f41536
diff --git a/tests/memory/short_term_memory_test.py b/tests/memory/short_term_memory_test.pyindex cb7ec9967..27adc5408 100644--- a/tests/memory/short_term_memory_test.py+++ b/tests/memory/short_term_memory_test.py@@ -1,6 +1,5 @@from unittest.mock import patch, ANYfrom collections import defaultdict-from pydantic.warnings import PydanticDeprecatedSince211import pytestfrom crewai.agent import Agent@@ -36,7 +35,6 @@ def short_term_memory():return ShortTermMemory(crew=Crew(agents=[agent], tasks=[task]))[email protected]("error", category=PydanticDeprecatedSince211)def test_short_term_memory_search_events(short_term_memory):events = defaultdict(list)@@ -86,7 +84,6 @@ def test_short_term_memory_search_events(short_term_memory):}[email protected]("error", category=PydanticDeprecatedSince211)def test_short_term_memory_save_events(short_term_memory):events = defaultdict(list)with crewai_event_bus.scoped_handlers():@@ -133,7 +130,6 @@ def test_short_term_memory_save_events(short_term_memory):}[email protected]("error", category=PydanticDeprecatedSince211)def test_save_and_search(short_term_memory):memory = ShortTermMemoryItem(data="""test value test value test value test value test value test value