Commits

Anonymous committed fa1aa45

Ignore .svn directories in the folders test from [17925]. This is what happens when you use git-svn.

  • Participants
  • Parent commits 898ecef

Comments (0)

Files changed (1)

tests/regressiontests/forms/tests/fields.py

             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)
+        f = FilePathField(path=path, allow_folders=True, allow_files=False, match=skip_svn)
         f.choices.sort()
         expected = [
             ('/django/forms/extras', 'extras'),
             self.assertEqual(exp[1], got[1])
             self.assert_(got[0].endswith(exp[0]))
 
-        f = FilePathField(path=path, allow_folders=True, allow_files=True)
+        f = FilePathField(path=path, allow_folders=True, allow_files=True, match=skip_svn)
         f.choices.sort()
         expected = [
             ('/django/forms/__init__.py', '__init__.py'),