Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472) · python/cpython@fd6094c (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 fd6094c
(cherry picked from commit 685cdb9)
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 |
---|---|---|
@@ -1290,6 +1290,7 @@ def test_release_task_refs(self): | ||
1290 | 1290 | self.pool.map(identity, objs) |
1291 | 1291 | |
1292 | 1292 | del objs |
1293 | +time.sleep(DELTA) # let threaded cleanup code run | |
1293 | 1294 | self.assertEqual(set(wr() for wr in refs), {None}) |
1294 | 1295 | # With a process pool, copies of the objects are returned, check |
1295 | 1296 | # they were released too. |