﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5507	File bases session backend failing on Win32	dougn	Philippe Raoult	"The new file based Session backend (ticket #2066, changeset [6333]) fails on Win23 due to the SESSION_FILE_PATH defaulting to '/tmp/'

django/trunk/django/conf/global_settings.py should get the default using the environ for the temporary storage on Win32/OSX


Adding the following to your local test settings file will work as a temporary workaround:
{{{
SESSION_FILE_PATH = os.environ['TMP']
}}}

Test Failure:
{{{
======================================================================
FAIL: Doctest: django.contrib.sessions.tests
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""C:\django-sprint\trunk\django\test\_doctest.py"", line 2169, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for django.contrib.sessions.tests
  File ""C:\django-sprint\trunk\django\contrib\sessions\tests.py"", line 0, in tests

----------------------------------------------------------------------
File ""C:\django-sprint\trunk\django\contrib\sessions\tests.py"", line 35, in django.contrib.sessions.tests
Failed example:
    file_session.exists(file_session.session_key)
Expected:
    True
Got:
    False


----------------------------------------------------------------------
Ran 165 tests in 291.149s

FAILED (failures=1)
}}}"		closed	Contrib apps	dev		fixed	sessions, file backend		Ready for checkin	1	0	0	0	0	0
