Skip to content

Commit c5dcb61

Browse files
committed
Fix failing test
1 parent f1c0f60 commit c5dcb61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_prefect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ async def run_complex_agent() -> Response:
216216

217217
# Prefect sets the `traceparent` header, so we explicitly disable distributed tracing for the tests to avoid the warning,
218218
# but we can't set that configuration for the capfire fixture, so we ignore the warning here.
219-
with warnings.catch_warnings(action='ignore', category=RuntimeWarning):
219+
with warnings.catch_warnings():
220+
warnings.filterwarnings('ignore', category=RuntimeWarning)
220221
output = await run_complex_agent()
221222
assert output == snapshot(
222223
Response(

0 commit comments

Comments
 (0)