﻿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
26017	forms_tests.tests.test_fields.FieldsTests.test_filepathfield_folders does not work when the tests directory is named differently	Raphaël Hertzog	nobody	"I tried ""cp -a tests ~/tmp/django-tests"" and then ran the tests from ~/tmp/django-tests. It turns out you get this failure:

{{{
======================================================================
FAIL: test_filepathfield_folders (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/rhertzog/tmp/django-tests/forms_tests/tests/test_fields.py"", line 1586, in test_filepathfield_folders
    self.assertTrue(got[0].endswith(exp[0]))
AssertionError: False is not true
}}}

Printing got and exp before the test you see this:
{{{
(u'/home/rhertzog/tmp/django-tests/forms_tests/tests/filepath_test_files/directory', u'directory')
(u'/tests/forms_tests/tests/filepath_test_files/directory', u'directory')
}}}

As you can see the difference is in the ""/django-tests/"" vs ""/tests/"" that do not match.

I would suggest that tests should not depend on the name of the top-level directory in which they are stored... it's an easy patch and I will submit it soon as PR."	Uncategorized	closed	Uncategorized	1.9	Normal	fixed			Unreviewed	1	0	0	0	1	0
