Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed failing tests caused by r14667

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 73cd9b61c9142a72e19dae6c6bd97244eb7a8adc 1 parent aee9db9
Honza Král authored November 21, 2010
4  tests/regressiontests/model_formsets_regress/tests.py
@@ -196,12 +196,12 @@ class FormfieldCallbackTests(TestCase):
196 196
 
197 197
     def test_inlineformset_factory_default(self):
198 198
         Formset = inlineformset_factory(User, UserSite, form=UserSiteForm)
199  
-        form = Formset({}).forms[0]
  199
+        form = Formset().forms[0]
200 200
         self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
201 201
 
202 202
     def test_modelformset_factory_default(self):
203 203
         Formset = modelformset_factory(UserSite, form=UserSiteForm)
204  
-        form = Formset({}).forms[0]
  204
+        form = Formset().forms[0]
205 205
         self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
206 206
 
207 207
     def assertCallbackCalled(self, callback):

0 notes on commit 73cd9b6

Please sign in to comment.
Something went wrong with that request. Please try again.