From 10cade8fac143984fc8416f3179c955e9f0c7f7b Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 28 Apr 2012 15:19:04 +0200 Subject: [PATCH] Removed a svn-specific hack from a test. --- tests/regressiontests/forms/tests/fields.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/regressiontests/forms/tests/fields.py b/tests/regressiontests/forms/tests/fields.py index 4e7b013199..9474fcb686 100644 --- a/tests/regressiontests/forms/tests/fields.py +++ b/tests/regressiontests/forms/tests/fields.py @@ -974,11 +974,9 @@ class FieldsTests(SimpleTestCase): self.assertTrue(got[0].endswith(exp[0])) def test_filepathfield_folders(self): - skip_svn = r'[^(\.svn)]' - path = forms.__file__ 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() expected = [ ('/django/forms/extras', 'extras'), @@ -987,7 +985,7 @@ class FieldsTests(SimpleTestCase): self.assertEqual(exp[1], got[1]) 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() expected = [ ('/django/forms/__init__.py', '__init__.py'),