|
18 | 18 | 3,
|
19 | 19 | "timer",
|
20 | 20 | [
|
21 |
| - [["awaiter3", "awaiter2", "awaiter"], 4], |
22 |
| - [["awaiter1_3", "awaiter1_2", "awaiter1"], 5], |
23 |
| - [["awaiter1_3", "awaiter1_2", "awaiter1"], 6], |
24 |
| - [["awaiter3", "awaiter2", "awaiter"], 7], |
| 21 | + [[("awaiter3", "/path/to/app.py", 130), |
| 22 | + ("awaiter2", "/path/to/app.py", 120), |
| 23 | + ("awaiter", "/path/to/app.py", 110)], 4], |
| 24 | + [[("awaiterB3", "/path/to/app.py", 190), |
| 25 | + ("awaiterB2", "/path/to/app.py", 180), |
| 26 | + ("awaiterB", "/path/to/app.py", 170)], 5], |
| 27 | + [[("awaiterB3", "/path/to/app.py", 190), |
| 28 | + ("awaiterB2", "/path/to/app.py", 180), |
| 29 | + ("awaiterB", "/path/to/app.py", 170)], 6], |
| 30 | + [[("awaiter3", "/path/to/app.py", 130), |
| 31 | + ("awaiter2", "/path/to/app.py", 120), |
| 32 | + ("awaiter", "/path/to/app.py", 110)], 7], |
25 | 33 | ],
|
26 | 34 | ),
|
27 | 35 | (
|
|
91 | 99 | " │ └── __aexit__",
|
92 | 100 | " │ └── _aexit",
|
93 | 101 | " │ ├── (T) child1_1",
|
94 |
| - " │ │ └── awaiter", |
95 |
| - " │ │ └── awaiter2", |
96 |
| - " │ │ └── awaiter3", |
| 102 | + " │ │ └── awaiter /path/to/app.py:110", |
| 103 | + " │ │ └── awaiter2 /path/to/app.py:120", |
| 104 | + " │ │ └── awaiter3 /path/to/app.py:130", |
97 | 105 | " │ │ └── (T) timer",
|
98 | 106 | " │ └── (T) child2_1",
|
99 |
| - " │ └── awaiter1", |
100 |
| - " │ └── awaiter1_2", |
101 |
| - " │ └── awaiter1_3", |
| 107 | + " │ └── awaiterB /path/to/app.py:170", |
| 108 | + " │ └── awaiterB2 /path/to/app.py:180", |
| 109 | + " │ └── awaiterB3 /path/to/app.py:190", |
102 | 110 | " │ └── (T) timer",
|
103 | 111 | " └── (T) root2",
|
104 | 112 | " └── bloch",
|
105 | 113 | " └── blocho_caller",
|
106 | 114 | " └── __aexit__",
|
107 | 115 | " └── _aexit",
|
108 | 116 | " ├── (T) child1_2",
|
109 |
| - " │ └── awaiter", |
110 |
| - " │ └── awaiter2", |
111 |
| - " │ └── awaiter3", |
| 117 | + " │ └── awaiter /path/to/app.py:110", |
| 118 | + " │ └── awaiter2 /path/to/app.py:120", |
| 119 | + " │ └── awaiter3 /path/to/app.py:130", |
112 | 120 | " │ └── (T) timer",
|
113 | 121 | " └── (T) child2_2",
|
114 |
| - " └── awaiter1", |
115 |
| - " └── awaiter1_2", |
116 |
| - " └── awaiter1_3", |
| 122 | + " └── awaiterB /path/to/app.py:170", |
| 123 | + " └── awaiterB2 /path/to/app.py:180", |
| 124 | + " └── awaiterB3 /path/to/app.py:190", |
117 | 125 | " └── (T) timer",
|
118 | 126 | ]
|
119 | 127 | ]
|
|
589 | 597 |
|
590 | 598 |
|
591 | 599 | class TestAsyncioToolsTree(unittest.TestCase):
|
592 |
| - |
593 | 600 | def test_asyncio_utils(self):
|
594 | 601 | for input_, tree in TEST_INPUTS_TREE:
|
595 | 602 | with self.subTest(input_):
|
|
0 commit comments