Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Potential regression in Python 3.11 (multiprocess shutdown?) #97641

Closed as not planned
Assignees
erlend-aasland
@carltongibson

Description

@carltongibson

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.gitpython3.11 -m venv env.\env\Scripts\Activate.ps1python -m pip install -e djangocd django\testspython runtests.py --parallel

Bug report

On Python 3.8, 3.9, and 3.10 this runs without problem.

On Python 3.11 the following error in seen after the test suite completes,
during shutdown:

Traceback (most recent call last):  File "C:\Users\carlt\src\django\tests\runtests.py", line 773, in <module>    failures = django_tests(               ^^^^^^^^^^^^^  File "C:\Users\carlt\src\django\tests\runtests.py", line 432, in django_tests    failures = test_runner.run_tests(test_labels)               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Users\carlt\src\django\django\test\runner.py", line 1057, in run_tests    self.teardown_databases(old_config)  File "C:\Users\carlt\src\django\django\test\runner.py", line 980, in teardown_databases    _teardown_databases(  File "C:\Users\carlt\src\django\django\test\utils.py", line 378, in teardown_databases    connection.creation.destroy_test_db(  File "C:\Users\carlt\src\django\django\db\backends\base\creation.py", line 307, in destroy_test_db    self._destroy_test_db(test_database_name, verbosity)  File "C:\Users\carlt\src\django\django\db\backends\sqlite3\creation.py", line 111, in _destroy_test_db    os.remove(test_database_name)PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'other_1.sqlite3'

This looked similar to us to open issue#95027 but we were asked to report it
separately.

I've tested all the way back toa1 where (along with other issues now resolved)
this error still occurs:

(django-py311) PS C:\Users\carlt\src\django\tests> python --versionPython 3.11.0rc2...(django-py311) PS C:\Users\carlt\src\django\tests> python --versionPython 3.11.0a1

This is somewhat frustrating as we've tried to test on all platforms since the
first releases.
Our test suite would only run on Windows with Python 3.11 very recently as
there was a third-party dependency that was not compatible with Windows. We
will try to adjust to test without dependencies as well on Windows for future
versions. (Sorry about that.)

Please do let us know if we can provide further info. I imagine though the
easiest thing is for you to run this yourself.

Thanks.

//cc@felixxm

Your environment

  • CPython versions tested on: 3.11 pre-releases from a1 to rc2.
  • Operating system and architecture: Windows 11.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp