learning-unlimited/ESP-Website — Issue #234: Tests that make use of /tmp fail in certain situations
Author: gkanwar
Created: 2012-01-07 00:31:09+00:00
State: open

Specifically, if you execute runserver, and then run the tests without first deleting the folder that's created, or changing it's permission in a certain way, you will get: `OSError: [Errno 13] Permission denied: '/tmp/esptmp__testsiteESP/tmpccMHLF'`. This happens for 32 tests for me. It seems to be because the webserver that Django uses changes the permissions on the /tmp/esptmp__ folder to be owned by www-data, which the tester user then doesn't have access to (unless you run with sudo I think). Is this just an unavoidable Django flaw, or can we make it so that the permissions on the folder are different? This is not high priority at all, it just bugged me after a while so I thought I'd note it here.