Django

Code

Ticket #6082 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

File based Session test fails for lack of /tmp directory on Windows Based System

Reported by: jags78 Assigned to: jags78
Milestone: Component: django.contrib.sessions
Version: SVN Keywords: test session file
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

When running the built in tests on a Windows based system you will get a consistent failure in the file store session test because the default /tmp directory is more than likely missing. A quick solution to the problem is to set SESSION_FILE_PATH to a directory that exists on your system. This should be modified to use the environments temp directory.

Attachments

6082.diff (1.6 kB) - added by jags78 on 12/01/07 12:49:32.
Patch for missing directory

Change History

12/01/07 12:49:32 changed by jags78

  • attachment 6082.diff added.

Patch for missing directory

12/01/07 13:00:18 changed by jags78

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

12/01/07 13:08:47 changed by jags78

  • owner changed from nobody to jags78.

12/01/07 19:23:50 changed by Simon G <dev@simon.net.nz>

  • stage changed from Unreviewed to Ready for checkin.

12/04/07 14:24:22 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

(In [6889]) Fixed #6082: file-based sessions now verify that SESSION_FILE_PATH is a valid storage location, and raise ImproperlyConfigured? if not. Thanks, jags78.


Add/Change #6082 (File based Session test fails for lack of /tmp directory on Windows Based System)




Change Properties
Action