Skip to content

Commit 87cbcfe

Browse files
committed
test: fix sqlite indexer test
Had an import psycopg2 that was not neded or used. It shouldn't have been there. Probbly bad copy/paste. Also remove @skip_postgres that isn't needed now.
1 parent bed036f commit 87cbcfe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/test_indexer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,13 +734,10 @@ def test_query_errors(self):
734734
error = 'Query error: syntax error near "^"'
735735
self.assertEqual(str(ctx.exception), error)
736736

737-
@skip_postgresql
738737
def testNullChar(self):
739738
"""Test with null char in string. FTS will throw
740739
an error on null.
741740
"""
742-
import psycopg2
743-
744741
string="\x00\x01fred\x255"
745742
self.dex.add_text(('test', '1', 'a'), string)
746743
with self.assertRaises(IndexerQueryError) as cm:

0 commit comments

Comments
 (0)