@@ -211,50 +211,50 @@ def testTypes(self):
211211 def testSyntaxError (self ):
212212 self .failUnlessRaises (
213213 pg_exc .SyntaxError ,
214- query , "SELEKT 1" ,
214+ query ( "SELEKT 1" )
215215 )
216216
217217 def testInvalidSchemaError (self ):
218218 self .failUnlessRaises (
219219 pg_exc .InvalidSchemaName ,
220- query , "SELECT * FROM sdkfldasjfdskljZknvson.foo"
220+ query ( "SELECT * FROM sdkfldasjfdskljZknvson.foo" )
221221 )
222222
223223 def testUndefinedTableError (self ):
224224 self .failUnlessRaises (
225225 pg_exc .UndefinedTableError ,
226- query , "SELECT * FROM public.lkansdkvsndlvksdvnlsdkvnsdlvk"
226+ query ( "SELECT * FROM public.lkansdkvsndlvksdvnlsdkvnsdlvk" )
227227 )
228228
229229 def testUndefinedColumnError (self ):
230230 self .failUnlessRaises (
231231 pg_exc .UndefinedColumnError ,
232- query , "SELECT x____ysldvndsnkv FROM information_schema.tables"
232+ query ( "SELECT x____ysldvndsnkv FROM information_schema.tables" )
233233 )
234234
235235 def testSEARVError_avgInWhere (self ):
236236 self .failUnlessRaises (
237237 pg_exc .SEARVError ,
238- query , "SELECT 1 WHERE avg(1) = 1"
238+ query ( "SELECT 1 WHERE avg(1) = 1" )
239239 )
240240
241241 def testSEARVError_groupByAgg (self ):
242242 self .failUnlessRaises (
243243 pg_exc .SEARVError ,
244- query , "SELECT 1 GROUP BY avg(1)"
244+ query ( "SELECT 1 GROUP BY avg(1)" )
245245 )
246246
247247 def testDatatypeMismatchError (self ):
248248 self .failUnlessRaises (
249249 pg_exc .DatatypeMismatchError ,
250- query , "SELECT 1 WHERE 1"
250+ query ( "SELECT 1 WHERE 1" )
251251 )
252252
253253 def testUndefinedObjectError (self ):
254254 try :
255255 self .failUnlessRaises (
256256 pg_exc .UndefinedObjectError ,
257- query , "CREATE TABLE lksvdnvsdlksnv(i intt___t)"
257+ query ( "CREATE TABLE lksvdnvsdlksnv(i intt___t)" )
258258 )
259259 except :
260260 # newer versions throw the exception on execution
@@ -348,7 +348,7 @@ def testConfiguredTransaction(self):
348348# - Fix bugs in test_setoutputsize_basic and test_setinputsizes
349349#
350350class test_dbapi20 (unittest .TestCase ):
351- '''
351+ """
352352 Test a database self.driver for DB API 2.0 compatibility.
353353 This implementation tests Gadfly, but the TestCase
354354 is structured so that other self.drivers can subclass this
@@ -369,7 +369,7 @@ class mytest(dbapi20.DatabaseAPI20Test):
369369 __rcs_id__ = 'Id: dbapi20.py,v 1.10 2003/10/09 03:14:14 zenzen Exp'
370370 __version__ = 'Revision: 1.10'
371371 __author__ = 'Stuart Bishop <zen@shangri-la.dropbear.id.au>'
372- '''
372+ """
373373
374374 import postgresql .driver .dbapi20 as driver
375375 table_prefix = 'dbapi20test_' # If you need to specify a prefix for tables
0 commit comments