# HG changeset patch # User Oben Sonne # Date 1414183832 -7200 # Fri Oct 24 22:50:32 2014 +0200 # Node ID 4473aaf4622ce7802bf386c405343c051cc9fdc7 # Parent 4b15c548bce5807d3f46e9330e7612afe81280ce minor typo fix diff --git a/src/deeno/sql.py b/src/deeno/sql.py --- a/src/deeno/sql.py +++ b/src/deeno/sql.py @@ -143,7 +143,7 @@ if columns is None: if not isinstance(rows[0], dict): - raise ValueError('either provide columns ore dictionary rows') + raise ValueError('either provide columns or dictionary rows') columns = tuple(sorted(rows[0].keys())) if set(tuple(sorted(r.keys())) for r in rows) != set([columns]): raise ValueError('dictionary rows must have identical keys') diff --git a/src/tests/test_sql.py b/src/tests/test_sql.py --- a/src/tests/test_sql.py +++ b/src/tests/test_sql.py @@ -209,7 +209,7 @@ sql.insert(self.r, rows=[[], []]) ok_(False) except ValueError as e: - eq_(str(e), 'either provide columns ore dictionary rows') + eq_(str(e), 'either provide columns or dictionary rows') try: sql.insert(self.r, columns=(), rows=[[], []])