Audio submission failing (DetachedInstanceError in test_audio)
|Reported by:||Ben Sturmfels||Owned by:|
I'm seeing the following error in master (2a1082e3) when running tests:
$ bin/py.test mediagoblin/tests/test_submission.py::TestSubmission::test_audio --boxed ______ TestSubmission.test_audio_______ Traceback (most recent call last): File "/home/ben/work/ws/mediagoblin/mediagoblin/tests/test_submission.py", line 377, in test_audio self.check_normal_upload('Audio', path) File "/home/ben/work/ws/mediagoblin/mediagoblin/tests/test_submission.py", line 121, in check_normal_upload **self.upload_data(filename)) File "/home/ben/work/ws/mediagoblin/mediagoblin/tests/test_submission.py", line 90, in do_post response = self.test_app.post(url, data, **kwargs) ⋮ File "/home/ben/work/ws/mediagoblin/mediagoblin/submit/views.py", line 73, in submit_start user=request.user.username) ⋮ DetachedInstanceError: Instance <LocalUser at 0x7f607207d110> is not bound to a Session; attribute refresh operation cannot proceed
I've chased it down to
mediagoblin/submit/lib.py:208. Before this line,
user is ok, but afterwards, it's detached from the SQLAlchemy session.
I've looked back through the version control history, and this error is occurring for me right back to when
test_audio was added in
c41705bf. That suggests that the error is related to an incompatible version of a dependency installed on my computer. I've attached the output of
This appears to not be related to #5323: Audio submission failing.