forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zero resource warnings for twisted.trial._dist.test.
python -Wall::ResourceWarning -m twisted.trial --force-gc twisted.trial._dist.test disttrial now always waits for its worker processes before shutdown; if they haven't terminated before the parent begins its reactor.stop call, the parent will wait 10 seconds before sending a kill signal to the remaining processes and waiting again. As currently written this could continue indefinitely if any worker process is uninterrupibly sleeping. As a result, test_disttrial can rely on workers' endDeferred Deferreds firing... except on these tests: twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_minimalWorker twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_run twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_runStopAfterTests twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_runUncleanWarnings twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_runUnexpectedError twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_runUntilFailure twisted.trial._dist.test.test_disttrial.DistTrialRunnerTests.test_runUsedDirectory ...because they don't advance the disttrial scheduling code enough to reach shutdown event trigger that cleans up endDeferreds. This commit must be split up between ResourceWarning mitigations and disttrial process management.
- Loading branch information
1 parent
1b52bd8
commit aaa46a9
Showing
3 changed files
with
126 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.