Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the generic_inline_admin tests for python3.

  • Loading branch information...
commit befa1dd7a5f88bcf994598c36438338109478409 1 parent 0c257f5
Alex Gaynor authored August 15, 2012 Alex Gaynor committed August 15, 2012
6  tests/regressiontests/generic_inline_admin/tests.py
@@ -276,7 +276,7 @@ class EpisodeAdmin(admin.ModelAdmin):
276 276
 
277 277
         ma = EpisodeAdmin(Episode, self.site)
278 278
         self.assertEqual(
279  
-            list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
  279
+            list(list(ma.get_formsets(request))[0]().forms[0].fields),
280 280
             ['keywords', 'id', 'DELETE'])
281 281
 
282 282
     def test_custom_form_meta_exclude(self):
@@ -306,7 +306,7 @@ class EpisodeAdmin(admin.ModelAdmin):
306 306
 
307 307
         ma = EpisodeAdmin(Episode, self.site)
308 308
         self.assertEqual(
309  
-            list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
  309
+            list(list(ma.get_formsets(request))[0]().forms[0].fields),
310 310
             ['url', 'keywords', 'id', 'DELETE'])
311 311
 
312 312
         # Then, only with `ModelForm`  -----------------
@@ -322,5 +322,5 @@ class EpisodeAdmin(admin.ModelAdmin):
322 322
 
323 323
         ma = EpisodeAdmin(Episode, self.site)
324 324
         self.assertEqual(
325  
-            list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
  325
+            list(list(ma.get_formsets(request))[0]().forms[0].fields),
326 326
             ['description', 'keywords', 'id', 'DELETE'])

0 notes on commit befa1dd

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