Django

Code

Ticket #6868 (closed: fixed)

Opened 3 months ago

Last modified 3 months ago

FilePathField tests fail on Windows

Reported by: nedbatchelder Assigned to: nobody
Milestone: Component: django.newforms
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The file paths in the expected results for FilePathField? are platform-specific. On Windows, the results include backslashes.

The patch fixes this by defining an ad-hoc fixer function which is called on the results.

Attachments

6868_filepathfield_tests.diff (2.8 kB) - added by nedbatchelder on 03/24/08 07:22:45.
the patch, without spurious blank line

Change History

03/24/08 07:22:45 changed by nedbatchelder

  • attachment 6868_filepathfield_tests.diff added.

the patch, without spurious blank line

03/24/08 08:11:54 changed by mtredinnick

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to fixed.
  • needs_tests changed.
  • needs_docs changed.

Fixed in [7355].


Add/Change #6868 (FilePathField tests fail on Windows)




Change Properties
Action