This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_semaphore_tracker() of test_multiprocessing_spawn fails with -W error
Type: Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2017-12-12 22:13 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4885 merged vstinner, 2017-12-15 15:03
PR 4887 open python-dev, 2017-12-15 15:29
Messages (2)
msg308161 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-12-12 22:13
vstinner@apu$ PYTHONWARNINGS=error ./python -W error -m test test_multiprocessing_spawn -v -m test_semaphore_tracker 
== CPython 3.7.0a3+ (heads/master:747f48e2e9, Dec 12 2017, 23:12:36) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]
== Linux-4.13.16-300.fc27.x86_64-x86_64-with-fedora-27-Twenty_Seven little-endian
== cwd: /home/vstinner/prog/python/master/build/test_python_29868
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 0.52 [1/1] test_multiprocessing_spawn
test_semaphore_tracker (test.test_multiprocessing_spawn.TestSemaphoreTracker) ... FAIL
Exception ignored in: <_io.FileIO name=7 mode='rb' closefd=True>
ResourceWarning: unclosed file <_io.BufferedReader name=7>

======================================================================
FAIL: test_semaphore_tracker (test.test_multiprocessing_spawn.TestSemaphoreTracker)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/prog/python/master/Lib/test/_test_multiprocessing.py", line 4380, in test_semaphore_tracker
    _multiprocessing.sem_unlink(name2)
AssertionError: OSError not raised

----------------------------------------------------------------------
Ran 1 test in 2.060s

FAILED (failures=1)
test test_multiprocessing_spawn failed
test_multiprocessing_spawn failed

1 test failed:
    test_multiprocessing_spawn

Total duration: 2 sec
Tests result: FAILURE
msg308406 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-12-15 15:29
New changeset 9402c8367bf6ada1b84f620ad957750c33adbaf9 by Victor Stinner in branch 'master':
bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)
https://github.com/python/cpython/commit/9402c8367bf6ada1b84f620ad957750c33adbaf9
History
Date User Action Args
2022-04-11 14:58:55adminsetgithub: 76475
2017-12-15 16:26:57vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-12-15 15:29:42python-devsetpull_requests: + pull_request4782
2017-12-15 15:29:26vstinnersetmessages: + msg308406
2017-12-15 15:03:09vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request4781
2017-12-12 22:13:34vstinnercreate