diff options
| -rw-r--r-- | test/lib/fixtures.py | 2 | ||||
| -rw-r--r-- | test/orm/_fixtures.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/fixtures.py b/test/lib/fixtures.py index 3281e1a00..a2f7bd1fb 100644 --- a/test/lib/fixtures.py +++ b/test/lib/fixtures.py @@ -191,6 +191,8 @@ class TablesTest(TestBase): """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] diff --git a/test/orm/_fixtures.py b/test/orm/_fixtures.py index d0d3a9ec4..e51924b77 100644 --- a/test/orm/_fixtures.py +++ b/test/orm/_fixtures.py @@ -275,7 +275,7 @@ class FixtureTest(fixtures.MappedTest): ), nodes = ( - ('id', 'parent_id', 'data') + ('id', 'parent_id', 'data'), ), composite_pk_table = ( |
