@@ -588,28 +588,21 @@ async def test_opentelemetry_safe_detach(client: Client):
588588
589589 with LogCapturer ().logs_captured (opentelemetry .context .logger ) as capturer :
590590 try :
591- print ("===== in detach test" )
592591 handle = await client .start_workflow (
593592 CacheEvictionTearDownWorkflow .run ,
594593 id = f"wf-{ uuid .uuid4 ()} " ,
595594 task_queue = worker .task_queue ,
596595 )
597596
598597 # CacheEvictionTearDownWorkflow requires 3 signals to be sent
599- print ("===== signal 1" )
600598 await handle .signal (CacheEvictionTearDownWorkflow .signal )
601- print ("===== signal 2" )
602599 await handle .signal (CacheEvictionTearDownWorkflow .signal )
603- print ("===== signal 3" )
604600 await handle .signal (CacheEvictionTearDownWorkflow .signal )
605601
606- print ("===== awaiting result" )
607602 await handle .result ()
608603 finally :
609604 sys .unraisablehook = old_hook
610605
611- print ("===== inspecting logs" )
612-
613606 # Confirm at least 1 exception
614607 if len (hook_calls ) < 1 :
615608 logging .warning (
@@ -622,6 +615,6 @@ def otel_context_error(record: logging.LogRecord) -> bool:
622615 and "Failed to detach context" in record .message
623616 )
624617
625- assert capturer . find ( otel_context_error ) is None , (
626- "Detach from context message should not be logged"
627- )
618+ assert (
619+ capturer . find ( otel_context_error ) is None
620+ ), "Detach from context message should not be logged"
0 commit comments