Title: unittest: on failure, TestCase.run() keeps a reference to the exception · Issue #64079 · python/cpython · GitHub
Open Graph Title: unittest: on failure, TestCase.run() keeps a reference to the exception · Issue #64079 · python/cpython
X Title: unittest: on failure, TestCase.run() keeps a reference to the exception · Issue #64079 · python/cpython
Description: BPO 19880 Nosy @pitrou, @vstinner, @ezio-melotti Files unittest_leak.pyunittest_workaround.patchcontextmanager_leak.pycontextmanager_leak2.pygenerator_workaround.patchframe_ref_cycle.pyunittest_leak.patch Note: these values reflect the s...
Open Graph Description: BPO 19880 Nosy @pitrou, @vstinner, @ezio-melotti Files unittest_leak.pyunittest_workaround.patchcontextmanager_leak.pycontextmanager_leak2.pygenerator_workaround.patchframe_ref_cycle.pyunittest_lea...
X Description: BPO 19880 Nosy @pitrou, @vstinner, @ezio-melotti Files unittest_leak.pyunittest_workaround.patchcontextmanager_leak.pycontextmanager_leak2.pygenerator_workaround.patchframe_ref_cycle.pyunittest_lea...
Opengraph URL: https://github.com/python/cpython/issues/64079
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unittest: on failure, TestCase.run() keeps a reference to the exception","articleBody":"BPO | [19880](https://bugs.python.org/issue19880)\n--- | :---\nNosy | @pitrou, @vstinner, @ezio-melotti\nFiles | \u003cli\u003e[unittest_leak.py](https://bugs.python.org/file32951/unittest_leak.py \"Uploaded as text/plain at 2013-12-03.22:46:40 by @vstinner\")\u003c/li\u003e\u003cli\u003e[unittest_workaround.patch](https://bugs.python.org/file32952/unittest_workaround.patch \"Uploaded as text/plain at 2013-12-03.22:46:48 by @vstinner\")\u003c/li\u003e\u003cli\u003e[contextmanager_leak.py](https://bugs.python.org/file32953/contextmanager_leak.py \"Uploaded as text/plain at 2013-12-03.22:48:46 by @vstinner\")\u003c/li\u003e\u003cli\u003e[contextmanager_leak2.py](https://bugs.python.org/file32954/contextmanager_leak2.py \"Uploaded as text/plain at 2013-12-03.23:11:16 by @vstinner\")\u003c/li\u003e\u003cli\u003e[generator_workaround.patch](https://bugs.python.org/file32955/generator_workaround.patch \"Uploaded as text/plain at 2013-12-03.23:11:22 by @vstinner\")\u003c/li\u003e\u003cli\u003e[frame_ref_cycle.py](https://bugs.python.org/file32956/frame_ref_cycle.py \"Uploaded as text/plain at 2013-12-03.23:34:26 by @vstinner\")\u003c/li\u003e\u003cli\u003e[unittest_leak.patch](https://bugs.python.org/file32957/unittest_leak.patch \"Uploaded as text/plain at 2013-12-04.00:15:10 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2013-12-09.00:56:40.951\u003e\ncreated_at = \u003cDate 2013-12-03.22:46:40.957\u003e\nlabels = []\ntitle = 'unittest: on failure, TestCase.run() keeps a reference to the exception'\nupdated_at = \u003cDate 2013-12-09.00:56:40.949\u003e\nuser = 'https://github.com/vstinner'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2013-12-09.00:56:40.949\u003e\nactor = 'python-dev'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2013-12-09.00:56:40.951\u003e\ncloser = 'python-dev'\ncomponents = []\ncreation = \u003cDate 2013-12-03.22:46:40.957\u003e\ncreator = 'vstinner'\ndependencies = []\nfiles = ['32951', '32952', '32953', '32954', '32955', '32956', '32957']\nhgrepos = []\nissue_num = 19880\nkeywords = ['patch']\nmessage_count = 7.0\nmessages = ['205167', '205168', '205173', '205174', '205177', '205179', '205630']\nnosy_count = 4.0\nnosy_names = ['pitrou', 'vstinner', 'ezio.melotti', 'python-dev']\npr_nums = []\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = None\nurl = 'https://bugs.python.org/issue19880'\nversions = ['Python 3.4']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2013-12-03T22:46:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/64079/cpython/issues/64079"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:016cbfb6-3e36-18cc-a0b7-a01a8aca85aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA8E:1ED62B:22199D:2D3A6B:6A51D730 |
| html-safe-nonce | da62def20efe558aa256f3df86a4155b7c9a5bec36eb9344b63c48bcd4f2e939 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQThFOjFFRDYyQjoyMjE5OUQ6MkQzQTZCOjZBNTFENzMwIiwidmlzaXRvcl9pZCI6Ijk4Mzk4OTYwNjQzNjQyNzU2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a4c1afaf14ab92f5a61766b99bfcade080f6e0299302be536983d726281b3864 |
| hovercard-subject-tag | issue:1198910443 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/64079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1781237e31f63194b8a030d4c1c032edd30bdb50fea9c2df5463d789e0b73696/python/cpython/issues/64079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1781237e31f63194b8a030d4c1c032edd30bdb50fea9c2df5463d789e0b73696/python/cpython/issues/64079 |
| og:image:alt | BPO 19880 Nosy @pitrou, @vstinner, @ezio-melotti Files unittest_leak.pyunittest_workaround.patchcontextmanager_leak.pycontextmanager_leak2.pygenerator_workaround.patchframe_ref_cycle.pyunittest_lea... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width