Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed a svn-specific hack from a test.

  • Loading branch information...
commit 10cade8fac143984fc8416f3179c955e9f0c7f7b 1 parent b49bc5c
Aymeric Augustin aaugustin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 tests/regressiontests/forms/tests/fields.py
6 tests/regressiontests/forms/tests/fields.py
View
@@ -974,11 +974,9 @@ def test_filepathfield_4(self):
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 @@ def test_filepathfield_folders(self):
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'),
Please sign in to comment.
Something went wrong with that request. Please try again.