@@ -791,21 +791,21 @@ def test_table_output_format(self):
791
791
class TestAsyncioToolsEdgeCases (unittest .TestCase ):
792
792
793
793
def test_task_awaits_self (self ):
794
- """A task directly awaits itself – should raise a cycle."""
794
+ """A task directly awaits itself - should raise a cycle."""
795
795
input_ = [(1 , [(1 , "Self-Awaiter" , [[["loopback" ], 1 ]])])]
796
796
with self .assertRaises (tools .CycleFoundException ) as ctx :
797
797
tools .build_async_tree (input_ )
798
798
self .assertIn ([1 , 1 ], ctx .exception .cycles )
799
799
800
800
def test_task_with_missing_awaiter_id (self ):
801
- """Awaiter ID not in task list – should not crash, just show 'Unknown'."""
801
+ """Awaiter ID not in task list - should not crash, just show 'Unknown'."""
802
802
input_ = [(1 , [(1 , "Task-A" , [[["coro" ], 999 ]])])] # 999 not defined
803
803
table = tools .build_task_table (input_ )
804
804
self .assertEqual (len (table ), 1 )
805
805
self .assertEqual (table [0 ][4 ], "Unknown" )
806
806
807
807
def test_duplicate_coroutine_frames (self ):
808
- """Same coroutine frame repeated under a parent – should deduplicate."""
808
+ """Same coroutine frame repeated under a parent - should deduplicate."""
809
809
input_ = [
810
810
(
811
811
1 ,
@@ -829,7 +829,7 @@ def test_duplicate_coroutine_frames(self):
829
829
self .assertIn ("Task-1" , flat )
830
830
831
831
def test_task_with_no_name (self ):
832
- """Task with no name in id2name – should still render with fallback."""
832
+ """Task with no name in id2name - should still render with fallback."""
833
833
input_ = [(1 , [(1 , "root" , [[["f1" ], 2 ]]), (2 , None , [])])]
834
834
# If name is None, fallback to string should not crash
835
835
tree = tools .build_async_tree (input_ )
0 commit comments