From: Gerhard H?r. <gha...@us...> - 2002-10-27 04:07:53
|
Update of /cvsroot/pypgsql/pypgsql/test In directory usw-pr-cvs1:/tmp/cvs-serv6183/test Modified Files: PgSQLTestCases.py Log Message: 27OCT2002 gh Don't check for the obsolete displaysize field in cursor.description. Also don't check the backend encoding. Index: PgSQLTestCases.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/test/PgSQLTestCases.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** PgSQLTestCases.py 8 Sep 2002 15:24:24 -0000 1.22 --- PgSQLTestCases.py 27 Oct 2002 04:07:50 -0000 1.23 *************** *** 33,36 **** --- 33,39 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 27OCT2002 gh Don't check for the obsolete displaysize field in | + # cursor.description. Also don't check the backend enco- | + # ding. | # 08SEP2002 gh Added tests for PgResultSet. | # 11AUG2002 bga Added additional tests for the PgNumeric class. | *************** *** 625,629 **** self.failUnless(self.cur.description[0][0] == "datname" and self.cur.description[0][1] == PgSQL.PG_NAME and - self.cur.description[0][2] == 32 and self.cur.description[0][3] == 32 and self.cur.description[0][4] == None and --- 628,631 ---- *************** *** 645,649 **** self.failUnless(self.cur.description[0][0] == "datname" and self.cur.description[0][1] == PgSQL.PG_NAME and - self.cur.description[0][2] == 32 and self.cur.description[0][3] == 32 and self.cur.description[0][4] == None and --- 647,650 ---- *************** *** 665,669 **** self.failUnless(self.cur.description[0][0] == "datname" and self.cur.description[0][1] == PgSQL.PG_NAME and - self.cur.description[0][2] == 32 and self.cur.description[0][3] == 32 and self.cur.description[0][4] == None and --- 666,669 ---- *************** *** 675,679 **** self.failUnless(self.cur.description[1][0] == "datdba" and self.cur.description[1][1] == PgSQL.PG_INT4 and - self.cur.description[1][2] == 10 and self.cur.description[1][3] == 4 and self.cur.description[1][4] == None and --- 675,678 ---- *************** *** 685,689 **** self.failUnless(self.cur.description[2][0] == "encoding" and self.cur.description[2][1] == PgSQL.PG_INT4 and - self.cur.description[2][2] == 10 and self.cur.description[2][3] == 4 and self.cur.description[2][4] == None and --- 684,687 ---- *************** *** 696,700 **** self.failUnless(self.cur.description[clen - 1][0] == "datpath" and self.cur.description[clen - 1][1] == PgSQL.PG_TEXT and - self.cur.description[clen - 1][2] == -5 and self.cur.description[clen - 1][3] == -1 and self.cur.description[clen - 1][4] == None and --- 694,697 ---- *************** *** 731,735 **** self.failUnless(self.res[0].datname == 'template1' and - self.res[0]['encoding'] == 0 and self.res[0][0] == 'template1', 'The query did not return the correct result.') --- 728,731 ---- |