Skip to content

Conversation

@bityob
Copy link
Contributor

@bityobbityob commented Jul 15, 2023

  1. Fixed TestResult.addDuration method to add only test repr string and not the test object itself, to avoid resources leak

@iritkatriel

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bityobbityobforce-pushed the gh-104090-fix-leaked-semaphors-on-test_concurrent_futures branch from cdbe1c4 to 8cd162fCompareJuly 16, 2023 08:53
@iritkatriel
Copy link
Member

I think it might be better to split this into two PRs (attached to the same issue), one for the unittest fix and the other for the resource tracker change.

@bityobbityobforce-pushed the gh-104090-fix-leaked-semaphors-on-test_concurrent_futures branch from 5585599 to 509636aCompareJuly 16, 2023 11:58
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bityob
Copy link
ContributorAuthor

I think it might be better to split this into two PRs (attached to the same issue), one for the unittest fix and the other for the resource tracker change.

Done

Second PR: #106807

@iritkatrieliritkatriel added tests Tests in the Lib/test dir stdlib Standard Library Python modules in the Lib/ directory labels Jul 16, 2023
@iritkatriel
Copy link
Member

CC unittest maintainers. @gpshead@ezio-melotti

See issue for motivation.

@iritkatriel
Copy link
Member

@giampaolo addDuration was added in 3.12. Should this be backported as a bugfix?

@sunmy2019
Copy link
Member

Is this new entry necessary?


Should this be backported as a bugfix?

+1 from me

@sunmy2019sunmy2019 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jul 18, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @sunmy2019 for commit d493239 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@giampaolo
Copy link
Contributor

giampaolo commented Jul 19, 2023

@iritkatriel wrote:

@giampaolo addDuration was added in 3.12. Should this be backported as a bugfix?

Hi! Yes, I think it should be backported.

@iritkatrieliritkatriel merged commit 70b961e into python:mainJul 19, 2023
@miss-islington
Copy link
Contributor

Thanks @bityob for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-106888 is a backport of this pull request to the 3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12 only security fixes label Jul 19, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 19, 2023
…onGH-106795) (cherry picked from commit 70b961e) Co-authored-by: Yonatan Bitton <bityob@gmail.com>
@iritkatrieliritkatriel added the needs backport to 3.12 only security fixes label Jul 19, 2023
@miss-islington
Copy link
Contributor

Thanks @bityob for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 19, 2023
…onGH-106795) (cherry picked from commit 70b961e) Co-authored-by: Yonatan Bitton <bityob@gmail.com>
iritkatriel pushed a commit that referenced this pull request Jul 19, 2023
…106795) (#106888) gh-104090: Fix unittest collectedDurations resources leak (GH-106795) (cherry picked from commit 70b961e) Co-authored-by: Yonatan Bitton <bityob@gmail.com>
@gpshead
Copy link
Member

thanks for figuring this out!

@picnixzpicnixz removed the needs backport to 3.12 only security fixes label Sep 14, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@bityob@bedevere-bot@iritkatriel@sunmy2019@giampaolo@miss-islington@gpshead@picnixz