From 4fddbffa3d5c3128b767158ad0a238c485bb1372 Mon Sep 17 00:00:00 2001 From: Matthew Wolter Date: Sun, 12 Apr 2026 07:57:23 -0700 Subject: [PATCH] Remove internal references from asyncio lifecycle tests Rename test_g5_asyncio_lifecycle.py to test_asyncio_lifecycle.py. Strip G5 from module docstring, finding IDs (F05, F07, F08, F19) from class names and docstrings. --- ...lifecycle.py => test_asyncio_lifecycle.py} | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename tests/unit/{test_g5_asyncio_lifecycle.py => test_asyncio_lifecycle.py} (92%) diff --git a/tests/unit/test_g5_asyncio_lifecycle.py b/tests/unit/test_asyncio_lifecycle.py similarity index 92% rename from tests/unit/test_g5_asyncio_lifecycle.py rename to tests/unit/test_asyncio_lifecycle.py index da56b8a..f70f2f0 100644 --- a/tests/unit/test_g5_asyncio_lifecycle.py +++ b/tests/unit/test_asyncio_lifecycle.py @@ -1,5 +1,5 @@ """ -Verification tests for G5 — Asyncio lifecycle fixes (F05, F07, F08, F19). +Verification tests for asyncio lifecycle fixes. """ import asyncio @@ -13,8 +13,8 @@ from meshcore.serial_cx import SerialConnection from meshcore.commands.base import CommandHandlerBase -class TestF05BackgroundTaskTracking(unittest.TestCase): - """F05: fire-and-forget create_task calls must be tracked to prevent GC.""" +class TestBackgroundTaskTracking(unittest.TestCase): + """Fire-and-forget create_task calls must be tracked to prevent GC.""" def test_tcp_spawn_background_retains_task(self): """TCP _spawn_background adds the task to _background_tasks.""" @@ -109,7 +109,7 @@ class TestF05BackgroundTaskTracking(unittest.TestCase): asyncio.run(_run()) def test_gc_does_not_cancel_tracked_tasks(self): - """Tracked tasks survive GC pressure (the whole point of F05).""" + """Tracked tasks survive GC pressure (the whole point of tracking).""" async def _run(): cx = TCPConnection("127.0.0.1", 5555) result = [] @@ -127,8 +127,8 @@ class TestF05BackgroundTaskTracking(unittest.TestCase): asyncio.run(_run()) -class TestF07TaskDoneCorrectness(unittest.TestCase): - """F07: EventDispatcher.stop() must wait for in-flight async callbacks.""" +class TestTaskDoneCorrectness(unittest.TestCase): + """EventDispatcher.stop() must wait for in-flight async callbacks.""" def test_stop_waits_for_async_callbacks(self): """stop() should not return until async callbacks have completed.""" @@ -156,8 +156,8 @@ class TestF07TaskDoneCorrectness(unittest.TestCase): asyncio.run(_run()) -class TestF08DeferredPrimitiveConstruction(unittest.TestCase): - """F08: Queue and Lock must not bind to import-time loop.""" +class TestDeferredPrimitiveConstruction(unittest.TestCase): + """Queue and Lock must not bind to import-time loop.""" def test_event_dispatcher_queue_is_none_before_start(self): """EventDispatcher.queue should be None until start() is called.""" @@ -202,8 +202,8 @@ class TestF08DeferredPrimitiveConstruction(unittest.TestCase): asyncio.run(_run()) -class TestF19GetRunningLoop(unittest.TestCase): - """F19: get_event_loop() replaced with get_running_loop() in send().""" +class TestGetRunningLoop(unittest.TestCase): + """get_event_loop() replaced with get_running_loop() in send().""" def test_send_uses_get_running_loop(self): """send() should call get_running_loop, not get_event_loop."""