| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -5550,16 +5550,20 @@ def _test_resource_tracker_leak_resources(self, context, delete_queue): | |
| q = mp_context.Queue() | ||
| if delete_queue: | ||
| del q | ||
| expected_exit_code = 0 | ||
| else: | ||
| expected_exit_code = 1 | ||
|
|
||
| self.assertIsNone(_resource_tracker._exitcode) | ||
| _resource_tracker._stop() | ||
|
|
||
| if delete_queue: | ||
| self.assertEqual(_resource_tracker._exitcode, 0) | ||
| else: | ||
| self.assertEqual(_resource_tracker._exitcode, 1) | ||
| self.assertEqual(_resource_tracker._exitcode, expected_exit_code) | ||
|
|
||
| def test_resource_tracker_exit_code(self): | ||
|
Comment thread
sunmy2019 marked this conversation as resolved.
Resolved
|
||
| """ | ||
| Test the exit code of the resource tracker based on if there were left leaked resources when we stop the process. | ||
| If not leaked resources were found, exit code should be 0, otherwise 1 | ||
|
Comment thread
Outdated
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThanks for the comment. Nit, but can you please ensure the line length remains reasonable (say < 80 characters) ? This can otherwise be annoying when reading/reviewing code.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityYes, I'll fix it. I'm used to 120 chars line length...
Sorry, something went wrong.
All reactions
|
||
| """ | ||
| for context in ["spawn", "forkserver"]: | ||
|
Comment thread
pitrou marked this conversation as resolved.
Resolved
|
||
| for delete_queue in [True, False]: | ||
| with self.subTest(context=context, delete_queue=delete_queue): | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.