Skip to content

Commit c7214cb

Browse files
committed
Fix failing test
1 parent e11f827 commit c7214cb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

utils/modify_tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ def process_file(file_path):
134134
):
135135
node.keywords.append(ast.keyword(arg='isolated_context', value=ast.Constant(value=False)))
136136

137+
# Add no_wait_after=True to add_locator_handler in owner_frame_detaches test
138+
if (test_name == "test_should_work_when_owner_frame_detaches"
139+
and node.func.attr == "add_locator_handler"
140+
and isinstance(node.func.value, ast.Name)
141+
):
142+
node.keywords.append(ast.keyword(arg='no_wait_after', value=ast.Constant(value=True)))
143+
137144
modified_source = ast.unparse(ast.fix_missing_locations(file_tree))
138145

139146
with open(file_path, 'w', encoding='utf-8') as f:

0 commit comments

Comments
 (0)