Title: Add a context manager to change cwd in test.test_support and run the test suite in a temp dir. · Issue #51961 · python/cpython · GitHub
Open Graph Title: Add a context manager to change cwd in test.test_support and run the test suite in a temp dir. · Issue #51961 · python/cpython
X Title: Add a context manager to change cwd in test.test_support and run the test suite in a temp dir. · Issue #51961 · python/cpython
Description: BPO 7712 Nosy @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek Files tempcwd.patch: Patch to add the context manager to test_supportissue7712.diff: Revised patch, still needs some tweaks.issue7712v2.diff: Patch with c...
Open Graph Description: BPO 7712 Nosy @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek Files tempcwd.patch: Patch to add the context manager to test_supportissue7712.diff: Revised patch, still needs so...
X Description: BPO 7712 Nosy @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek Files tempcwd.patch: Patch to add the context manager to test_supportissue7712.diff: Revised patch, still needs so...
Opengraph URL: https://github.com/python/cpython/issues/51961
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.","articleBody":"BPO | [7712](https://bugs.python.org/issue7712)\n--- | :---\nNosy | @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek\nFiles | \u003cli\u003e[tempcwd.patch](https://bugs.python.org/file15904/tempcwd.patch \"Uploaded as text/plain at 2010-01-16.05:42:20 by @ezio-melotti\"): Patch to add the context manager to test_support\u003c/li\u003e\u003cli\u003e[issue7712.diff](https://bugs.python.org/file16146/issue7712.diff \"Uploaded as text/plain at 2010-02-06.04:56:27 by @ezio-melotti\"): Revised patch, still needs some tweaks.\u003c/li\u003e\u003cli\u003e[issue7712v2.diff](https://bugs.python.org/file16175/issue7712v2.diff \"Uploaded as text/plain at 2010-02-08.00:47:55 by @ezio-melotti\"): Patch with context manager and fix for regrtest and a few tests\u003c/li\u003e\u003cli\u003e[issue7712v3.diff](https://bugs.python.org/file16179/issue7712v3.diff \"Uploaded as text/plain at 2010-02-08.16:20:08 by @ezio-melotti\"): Final patch\u003c/li\u003e\u003cli\u003e[test_bufio.stdout.txt](https://bugs.python.org/file16181/test_bufio.stdout.txt \"Uploaded as text/plain at 2010-02-09.00:22:41 by @briancurtin\")\u003c/li\u003e\u003cli\u003e[issue7712_regrtest_rm_hacks.diff](https://bugs.python.org/file16219/issue7712_regrtest_rm_hacks.diff \"Uploaded as text/plain at 2010-02-12.15:45:10 by @florentx\"): Patch, apply to trunk\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 = 'https://github.com/ezio-melotti'\nclosed_at = \u003cDate 2010-03-14.11:28:20.836\u003e\ncreated_at = \u003cDate 2010-01-16.05:42:25.267\u003e\nlabels = ['type-feature', 'tests']\ntitle = 'Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.'\nupdated_at = \u003cDate 2012-09-19.00:30:26.412\u003e\nuser = 'https://github.com/ezio-melotti'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2012-09-19.00:30:26.412\u003e\nactor = 'ezio.melotti'\nassignee = 'ezio.melotti'\nclosed = True\nclosed_date = \u003cDate 2010-03-14.11:28:20.836\u003e\ncloser = 'ezio.melotti'\ncomponents = ['Tests']\ncreation = \u003cDate 2010-01-16.05:42:25.267\u003e\ncreator = 'ezio.melotti'\ndependencies = []\nfiles = ['15904', '16146', '16175', '16179', '16181', '16219']\nhgrepos = []\nissue_num = 7712\nkeywords = ['patch']\nmessage_count = 28.0\nmessages = ['97865', '97871', '98059', '98060', '98061', '98072', '98936', '98939', '98949', '98951', '98955', '98988', '99002', '99034', '99051', '99079', '99080', '99083', '99088', '99090', '99091', '99144', '99269', '99295', '99311', '99498', '100545', '101051']\nnosy_count = 6.0\nnosy_names = ['pitrou', 'ezio.melotti', 'eric.araujo', 'brian.curtin', 'flox', 'chris.jerdonek']\npr_nums = []\npriority = 'normal'\nresolution = 'accepted'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue7712'\nversions = ['Python 2.7', 'Python 3.2']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/ezio-melotti","@type":"Person","name":"ezio-melotti"},"datePublished":"2010-01-16T05:42:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/51961/cpython/issues/51961"}
| 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:93507268-5179-f1fe-4e22-d6a85b98b4eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A934:1F01:10E0873:16EF127:6A5020F4 |
| html-safe-nonce | c9be329cf3105011d5b88e18dd30a7e5b7ed1ef4ec2ad849eb6fd9590e1949b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTM0OjFGMDE6MTBFMDg3MzoxNkVGMTI3OjZBNTAyMEY0IiwidmlzaXRvcl9pZCI6IjY0MDMzMDg3NTI3NDE2MDU2MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4c0f58224d348b2fe3102d8d7ee24decd19aba747b14b79b4c2774c846524a31 |
| hovercard-subject-tag | issue:1198851302 |
| 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/51961/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c59f8e2a9a500bc6a89e60c9ebae3f7e354e920cf50626dcc5f5afa3396cb09/python/cpython/issues/51961 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c59f8e2a9a500bc6a89e60c9ebae3f7e354e920cf50626dcc5f5afa3396cb09/python/cpython/issues/51961 |
| og:image:alt | BPO 7712 Nosy @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek Files tempcwd.patch: Patch to add the context manager to test_supportissue7712.diff: Revised patch, still needs so... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ezio-melotti |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| 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 | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width