pytest-dev / pytest-dev/pytest-django
Cannot Set conn.allow_thread_sharing
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
When using an sqlite in-memory database, our test gets to that line and raises AttributeError: Can't set attribute
Looking at the django source code for the allow_thread_sharing property: it appears to be a read-only property.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at pytest_django/live_server_helper.py line 27 and reproduce the failure with an SQLite in-memory database. Compare that access with Django's allow_thread_sharing property in the linked Django source; done means the test reaches this path without the AttributeError and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100