pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

Cannot Set conn.allow_thread_sharing

Open jackdesert opened this issue 4 years ago • 0 comments
trafficstars

On this line: https://github.com/pytest-dev/pytest-django/blob/cf6b229bce0c717bc590d8fd7cef281f3aa2c1fa/pytest_django/live_server_helper.py#L27

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.

jackdesert avatar Jul 01 '21 20:07 jackdesert