From: Billy G. A. <bal...@us...> - 2005-03-06 20:15:46
|
Update of /cvsroot/pypgsql/pypgsql/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5087/test Modified Files: PgSQLTestCases.py Log Message: 06MAR2005 bga Updated PgSQLTestCases.py for PostgreSQL 8.0. Index: PgSQLTestCases.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/test/PgSQLTestCases.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** PgSQLTestCases.py 6 Oct 2003 18:36:56 -0000 1.26 --- PgSQLTestCases.py 6 Mar 2005 20:15:36 -0000 1.27 *************** *** 33,36 **** --- 33,37 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 06MAR2005 bga Updated tests for PostgresQL 8.0 | # 06OCT2004 bga [Bug #816729] Updated tests for PostgreSQL 7.4(beta). | # Thanks to Jeff Putnam for the fixes. | *************** *** 583,587 **** self.cur.close() vstr = "%(major)d.%(minor)d" % self.cnx.version ! if self.cnx.version.level != 0: vstr = vstr + ".%(level)d" % self.cnx.version self.failUnlessEqual(v, vstr, --- 584,588 ---- self.cur.close() vstr = "%(major)d.%(minor)d" % self.cnx.version ! if v != vstr or self.cnx.version.level != 0: vstr = vstr + ".%(level)d" % self.cnx.version self.failUnlessEqual(v, vstr, *************** *** 618,622 **** """Test execute() with a singleton string as the parameter.""" ! if self.vstr.startswith("7.4"): flen = 11 elif self.vstr.startswith("7.3"): --- 619,625 ---- """Test execute() with a singleton string as the parameter.""" ! if self.vstr.startswith("8.0"): ! flen = 11 ! elif self.vstr.startswith("7.4"): flen = 11 elif self.vstr.startswith("7.3"): *************** *** 803,807 **** # Note: We only have to check for the minor version number in order # to determine the needed row counts. ! rc = { '7.4':137, '7.3':124, '7.2':101, '7.1':80, '7.0':65, '6.5':47 } v = self.vstr --- 806,810 ---- # Note: We only have to check for the minor version number in order # to determine the needed row counts. ! rc = { '8.0':140, '7.4':137, '7.3':124, '7.2':101, '7.1':80, '7.0':65, '6.5':47 } v = self.vstr |