Mercurial > p > roundup > code
diff test/test_indexer.py @ 7073:67e7225c4343
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 24 Nov 2022 10:00:59 -0500 |
| parents | 890b8f4ff38e |
| children | d17e57220a62 |
line wrap: on
line diff
--- a/test/test_indexer.py Thu Nov 24 10:41:54 2022 +0100 +++ b/test/test_indexer.py Thu Nov 24 10:00:59 2022 -0500 @@ -734,13 +734,10 @@ error = 'Query error: syntax error near "^"' self.assertEqual(str(ctx.exception), error) - @skip_postgresql def testNullChar(self): """Test with null char in string. FTS will throw an error on null. """ - import psycopg2 - string="\x00\x01fred\x255" self.dex.add_text(('test', '1', 'a'), string) with self.assertRaises(IndexerQueryError) as cm:
