Skip to content

Conversation

@miss-islington
Copy link
Contributor

  • Replace sleep() with support.sleeping_retry().
  • Test get_nowait() first.
  • Restore previously disabled test.

Fix the failure:

FAIL: test_get (test.test_multiprocessing_spawn.test_processes.WithProcessesTestQueue.test_get)

Traceback (most recent call last):
File "Lib/test/_test_multiprocessing.py", line 1208, in test_get
self.assertEqual(queue_empty(queue), False)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True != False
(cherry picked from commit 5e749d3)

Co-authored-by: Victor Stinner vstinner@python.org

* Replace sleep() with support.sleeping_retry().
* Test get_nowait() first.
* Restore previously disabled test.

Fix the failure:

FAIL: test_get (test.test_multiprocessing_spawn.test_processes.WithProcessesTestQueue.test_get)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/_test_multiprocessing.py", line 1208, in test_get
    self.assertEqual(queue_empty(queue), False)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True != False
(cherry picked from commit 5e749d3)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app bedevere-app bot added awaiting review tests Tests in the Lib/test dir labels Nov 29, 2025
@gpshead gpshead enabled auto-merge (squash) November 29, 2025 07:01
@gpshead gpshead merged commit 20b910c into python:3.14 Nov 29, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants