Changes between Initial Version and Version 1 of Ticket #31240, comment 10
- Timestamp:
- Feb 6, 2020, 10:19:49 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31240, comment 10
initial v1 9 9 10 10 11 Sure I could, but I mean the only relevant part really is the code I've already provided which I simply stuck into the top of tests/responses/test_fileresponse.py in the Django repo and ran the test suite using [https://github.com/django/django-docker-box/ django-docker-box]. I'm not sure I understand how it is expected behaviour that using a temporary file in a FileResponse should disrupt any DB connections?11 Sure I could, but I mean the only relevant part really is the code I've already provided which I simply stuck into the top of tests/responses/test_fileresponse.py in the Django repo and ran the test suite using [https://github.com/django/django-docker-box/ django-docker-box]. 12 12 13 The error raised when testing against MySQL/MariaDB is especially confusing when it says an error occurred inside a transaction. 13 I'm just not sure I understand how it is expected behaviour that using a temporary file in a FileResponse should disrupt any DB connections? The error raised when testing against MySQL/MariaDB is especially confusing when it says an error occurred inside a transaction. 14 15 And another thing to note is that if I create the response using FileResponse(__file__) instead of the temporary file, the error disappears.