trunk/57914c6e94732191855bd7f1da207f16052d5859: Update handler clearance logic (#196102)
- PyTorch 近 90 天出现 1030 次
- PyTorch 近 90 天第 1019 次发版
- 上一次:同一天稍早 · trunk/136a65c6f464a7cafd418a9c680f731b97878e36
发生了什么
The tests, when run in shards, use pytest. So, pytest test_logging.py is used instead of python test_logging.py . The initial code, which was: for log_qname in log_internal . log_registry . get_log_qnames (): logger = logging . getLogger ( log_qname ) created_handlers . update ( logger . handlers ) self . assertEqual ( len ( logger . handlers ), 2 , f" { log_qname } should only have stream and file handlers" , ) che…
摘要按规则整理自下方来源原文