8000 gh-121723: Relax constraints on queue objects for `logging.handlers.QueueHandler`. by picnixz · Pull Request #122154 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121723: Relax constraints on queue objects for logging.handlers.QueueHandler. #122154

New issue

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

Merged
merged 15 commits into from
Aug 2, 2024
Prev Previous commit
Next Next commit
increase the timeout (maybe it works like this?)
  • Loading branch information
picnixz committed Jul 24, 2024
commit 7729fb6d4aa8f735932df47b29400802d4a65443
2 changes: 1 addition & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -4015,7 +4015,7 @@ def test_config_queue_handler_multiprocessing_context(self):
# use 1 process and 1 task per child to put 1 record
with ctx.Pool(1, initializer=self._mpinit_issue121723,
initargs=(q, "text"), maxtasksperchild=1):
records.append(q.get(timeout=0.5))
records.append(q.get(timeout=2))
self.assertTrue(q.empty())
self.assertEqual(len(records), 1)

Expand Down
Loading
0