Removed a svn-specific hack from a test.

This commit is contained in:
Aymeric Augustin 2012-04-28 15:19:04 +02:00
parent b49bc5c990
commit 10cade8fac
1 changed files with 2 additions and 4 deletions

View File

@ -974,11 +974,9 @@ class FieldsTests(SimpleTestCase):
self.assertTrue(got[0].endswith(exp[0])) self.assertTrue(got[0].endswith(exp[0]))
def test_filepathfield_folders(self): def test_filepathfield_folders(self):
skip_svn = r'[^(\.svn)]'
path = forms.__file__ path = forms.__file__
path = os.path.dirname(path) + '/' path = os.path.dirname(path) + '/'
f = FilePathField(path=path, allow_folders=True, allow_files=False, match=skip_svn) f = FilePathField(path=path, allow_folders=True, allow_files=False)
f.choices.sort() f.choices.sort()
expected = [ expected = [
('/django/forms/extras', 'extras'), ('/django/forms/extras', 'extras'),
@ -987,7 +985,7 @@ class FieldsTests(SimpleTestCase):
self.assertEqual(exp[1], got[1]) self.assertEqual(exp[1], got[1])
self.assert_(got[0].endswith(exp[0])) self.assert_(got[0].endswith(exp[0]))
f = FilePathField(path=path, allow_folders=True, allow_files=True, match=skip_svn) f = FilePathField(path=path, allow_folders=True, allow_files=True)
f.choices.sort() f.choices.sort()
expected = [ expected = [
('/django/forms/__init__.py', '__init__.py'), ('/django/forms/__init__.py', '__init__.py'),