summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/factory.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sqlite3/test/factory.py')
-rw-r--r--Lib/sqlite3/test/factory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/factory.py b/Lib/sqlite3/test/factory.py
index 8764284..7faa9ac 100644
--- a/Lib/sqlite3/test/factory.py
+++ b/Lib/sqlite3/test/factory.py
@@ -123,6 +123,8 @@ class RowFactoryTests(unittest.TestCase):
row[-3]
with self.assertRaises(IndexError):
row[2**1000]
+ with self.assertRaises(IndexError):
+ row[complex()] # index must be int or string
def test_sqlite_row_index_unicode(self):
self.con.row_factory = sqlite.Row