()
| 53 | |
| 54 | |
| 55 | def _configure_asyncio_policy() -> None: |
| 56 | if os.name != "nt": |
| 57 | return |
| 58 | policy_cls = getattr(asyncio, "WindowsProactorEventLoopPolicy", None) |
| 59 | if policy_cls is None: |
| 60 | return |
| 61 | try: |
| 62 | if not isinstance(asyncio.get_event_loop_policy(), policy_cls): |
| 63 | asyncio.set_event_loop_policy(policy_cls()) |
| 64 | except Exception: |
| 65 | pass |
| 66 | |
| 67 | |
| 68 | def _suppress_known_runtime_warnings() -> None: |
no outgoing calls
no test coverage detected