bpo-35621: Fix tests when SafeChildWatcher is expected instead of Thr… · python/cpython@c6789d6 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit c6789d6
authored and
committed
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1836,6 +1836,7 @@ def f(): | ||
1836 | 1836 | policy.get_event_loop().close() |
1837 | 1837 | |
1838 | 1838 | policy = self.create_policy() |
1839 | +policy.set_child_watcher(asyncio.SafeChildWatcher()) | |
1839 | 1840 | |
1840 | 1841 | th = threading.Thread(target=f) |
1841 | 1842 | th.start() |