Commits

Mike Bayer committed 3d22182

- fix empty row insert in fixture, [ticket:2573]

  • Participants
  • Parent commits e00e3b6

Comments (0)

Files changed (2)

File test/lib/fixtures.py

         """Insert rows as represented by the fixtures() method."""
         headers, rows = {}, {}
         for table, data in cls.fixtures().iteritems():
+            if len(data) < 2:
+                continue
             if isinstance(table, basestring):
                 table = cls.tables[table]
             headers[table] = data[0]

File test/orm/_fixtures.py

             ),
 
             nodes = (
-                ('id', 'parent_id', 'data')
+                ('id', 'parent_id', 'data'),
             ),
 
             composite_pk_table = (