Title: Potential regression in Python 3.11 (multiprocess shutdown?) · Issue #97641 · python/cpython · GitHub
Open Graph Title: Potential regression in Python 3.11 (multiprocess shutdown?) · Issue #97641 · python/cpython
X Title: Potential regression in Python 3.11 (multiprocess shutdown?) · Issue #97641 · python/cpython
Description: Running the Django test suite against the Python 3.11 pre-releases, we have hit a potential regression. Steps to reproduce git clone https://github.com/django/django.git python3.11 -m venv env .\env\Scripts\Activate.ps1 python -m pip ins...
Open Graph Description: Running the Django test suite against the Python 3.11 pre-releases, we have hit a potential regression. Steps to reproduce git clone https://github.com/django/django.git python3.11 -m venv env .\en...
X Description: Running the Django test suite against the Python 3.11 pre-releases, we have hit a potential regression. Steps to reproduce git clone https://github.com/django/django.git python3.11 -m venv env .\en...
Opengraph URL: https://github.com/python/cpython/issues/97641
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Potential regression in Python 3.11 (multiprocess shutdown?)","articleBody":"Running the Django test suite against the Python 3.11 pre-releases, we have hit\r\na potential regression.\r\n\r\n## Steps to reproduce\r\n\r\n```\r\ngit clone https://github.com/django/django.git\r\npython3.11 -m venv env\r\n.\\env\\Scripts\\Activate.ps1\r\npython -m pip install -e django\r\ncd django\\tests\r\npython runtests.py --parallel\r\n```\r\n\r\n# Bug report\r\n\r\nOn Python 3.8, 3.9, and 3.10 this runs without problem.\r\n\r\nOn Python 3.11 the following error in seen after the test suite completes,\r\nduring shutdown:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\carlt\\src\\django\\tests\\runtests.py\", line 773, in \u003cmodule\u003e\r\n failures = django_tests(\r\n ^^^^^^^^^^^^^\r\n File \"C:\\Users\\carlt\\src\\django\\tests\\runtests.py\", line 432, in django_tests\r\n failures = test_runner.run_tests(test_labels)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\carlt\\src\\django\\django\\test\\runner.py\", line 1057, in run_tests\r\n self.teardown_databases(old_config)\r\n File \"C:\\Users\\carlt\\src\\django\\django\\test\\runner.py\", line 980, in teardown_databases\r\n _teardown_databases(\r\n File \"C:\\Users\\carlt\\src\\django\\django\\test\\utils.py\", line 378, in teardown_databases\r\n connection.creation.destroy_test_db(\r\n File \"C:\\Users\\carlt\\src\\django\\django\\db\\backends\\base\\creation.py\", line 307, in destroy_test_db\r\n self._destroy_test_db(test_database_name, verbosity)\r\n File \"C:\\Users\\carlt\\src\\django\\django\\db\\backends\\sqlite3\\creation.py\", line 111, in _destroy_test_db\r\n os.remove(test_database_name)\r\nPermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'other_1.sqlite3'\r\n```\r\n\r\nThis looked similar to us to open issue #95027 but we were asked to report it \r\nseparately. \r\n\r\nI've tested all the way back to `a1` where (along with other issues now resolved) \r\nthis error still occurs: \r\n\r\n```\r\n(django-py311) PS C:\\Users\\carlt\\src\\django\\tests\u003e python --version\r\nPython 3.11.0rc2\r\n...\r\n(django-py311) PS C:\\Users\\carlt\\src\\django\\tests\u003e python --version\r\nPython 3.11.0a1\r\n```\r\n\r\nThis is somewhat frustrating as we've tried to test on all platforms since the \r\nfirst releases. \r\nOur test suite would only run on Windows with Python 3.11 very recently as\r\nthere was a third-party dependency that was not compatible with Windows. We\r\nwill try to adjust to test without dependencies as well on Windows for future\r\nversions. (Sorry about that.)\r\n\r\nPlease do let us know if we can provide further info. I imagine though the \r\neasiest thing is for you to run this yourself. \r\n\r\nThanks. \r\n\r\n//cc @felixxm \r\n\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.11 pre-releases from a1 to rc2. \r\n- Operating system and architecture: Windows 11. \r\n\r\n","author":{"url":"https://github.com/carltongibson","@type":"Person","name":"carltongibson"},"datePublished":"2022-09-29T08:22:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/97641/cpython/issues/97641"}
| 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:dc93960e-b754-7df4-f874-0dd1dab9c330 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A952:2839F:1788C72:1F61014:6969BE73 |
| html-safe-nonce | 2c8e0494044207d487b669d443b0bdf9de2d1953db0b457a56817b2a49376951 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTUyOjI4MzlGOjE3ODhDNzI6MUY2MTAxNDo2OTY5QkU3MyIsInZpc2l0b3JfaWQiOiIxODUyOTE4MjY5ODY5NjcwMDAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d80b6a04c09a7ceeb045189fa7165fd4381991f62fb5c8e9c4547be10c8cc104 |
| hovercard-subject-tag | issue:1390461440 |
| 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/97641/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3eb37cb3ca8df44e7db69b0e1dea7a83f00ccd87f7a96f674e990bd2ae51d21/python/cpython/issues/97641 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3eb37cb3ca8df44e7db69b0e1dea7a83f00ccd87f7a96f674e990bd2ae51d21/python/cpython/issues/97641 |
| og:image:alt | Running the Django test suite against the Python 3.11 pre-releases, we have hit a potential regression. Steps to reproduce git clone https://github.com/django/django.git python3.11 -m venv env .\en... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carltongibson |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width