Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1132) · python/cpython@413a891 (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 413a891
(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 |
---|---|---|
@@ -2080,6 +2080,7 @@ def test_release_task_refs(self): | ||
2080 | 2080 | self.pool.map(identity, objs) |
2081 | 2081 | |
2082 | 2082 | del objs |
2083 | +time.sleep(DELTA) # let threaded cleanup code run | |
2083 | 2084 | self.assertEqual(set(wr() for wr in refs), {None}) |
2084 | 2085 | # With a process pool, copies of the objects are returned, check |
2085 | 2086 | # they were released too. |