Changes between Initial Version and Version 1 of Ticket #31240, comment 10


Ignore:
Timestamp:
Feb 6, 2020, 10:19:49 AM (5 years ago)
Author:
Oskar Persson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31240, comment 10

    initial v1  
    99
    1010
    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?
     11Sure 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].
    1212
    13 The error raised when testing against MySQL/MariaDB is especially confusing when it says an error occurred inside a transaction.
     13I'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
     15And another thing to note is that if I create the response using FileResponse(__file__) instead of the temporary file, the error disappears.
Back to Top