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_unparse leaked [35, 5, 6] references: fail randomly, pass when run again
Type: Stage: resolved
Components: Tests Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pablogsal, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2019-12-09 13:20 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 17537 merged pablogsal, 2019-12-09 17:27
Messages (4)
msg358074 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-12-09 13:20
Sometimes, test_unparse leak references, sometimes it pass.

$ ./python -m test -R 3:3 test_unparse
(...)
test_unparse leaked [35, 5, 6] references, sum=46
(...)
Tests result: FAILURE

$ ./python -m test -R 3:3 test_unparse
(...)
Tests result: SUCCESS
msg358078 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-12-09 13:28
Is not this test select random files in non-verbose mode?
msg358122 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2019-12-09 17:57
New changeset ac229116a34a679511c20bfeca167cc6a9df9807 by Pablo Galindo in branch 'master':
bpo-39003: Make sure all test are the same when using -R in test_unparse (GH-17537)
https://github.com/python/cpython/commit/ac229116a34a679511c20bfeca167cc6a9df9807
msg358139 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-12-09 20:27
Thanks for the quick fix.
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83184
2019-12-09 20:27:31vstinnersetmessages: + msg358139
2019-12-09 17:58:10pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-12-09 17:57:57pablogsalsetmessages: + msg358122
2019-12-09 17:27:24pablogsalsetkeywords: + patch
stage: patch review
pull_requests: + pull_request17014
2019-12-09 13:28:44serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg358078
2019-12-09 13:21:22vstinnersettitle: test_unparse leaked [35, 5, 6] references: when pass when run again -> test_unparse leaked [35, 5, 6] references: fail randomly, pass when run again
2019-12-09 13:20:45vstinnercreate