Skip to content

[pull] main from django:main - #521

Merged
pull[bot] merged 4 commits into
threatcode:mainfrom
django:main
Aug 3, 2026
Merged

[pull] main from django:main#521
pull[bot] merged 4 commits into
threatcode:mainfrom
django:main

Conversation

@pull

@pull pull Bot commented Aug 3, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jacobtylerwalls and others added 4 commits August 3, 2026 08:21
Without also mocking the global settings, there was pollution of the
test database name, since create_test_db() writes like so:

    self.connection.settings_dict["NAME"] = test_database_name

This caused other tests that explicitly reopen database connections to
fail under parallel test execution (in forkserver mode) because at the
moment of reopening, the db name was `memorydb_default` rather than the
suffixed version `memorydb_default_3`:

  backends.sqlite.tests.ThreadSharing.test_database_sharing_in_threads
  servers.tests.LiveServerInMemoryDatabaseLockTest.test_in_memory_database_lock
This aims for consistency in the django.db.models namespace.

Thanks Natalia Bidart and Simon Charette for the idea.
…ndex.

Thanks Jacob for the triage and James for the review.
@pull pull Bot locked and limited conversation to collaborators Aug 3, 2026
@pull pull Bot added the ⤵️ pull label Aug 3, 2026
@pull
pull Bot merged commit fb11376 into threatcode:main Aug 3, 2026
8 of 9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants