From: Billy G. A. <bal...@us...> - 2001-09-10 04:42:39
|
Update of /cvsroot/pypgsql/pypgsql/test/regression In directory usw-pr-cvs1:/tmp/cvs-serv24390/test/regression Modified Files: pgresult.py Log Message: 10SEP2001 bga Modified the test cases to reflect recent changes to pgversion.c Index: pgresult.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/test/regression/pgresult.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pgresult.py 2001/09/07 00:19:26 1.3 --- pgresult.py 2001/09/10 04:42:36 1.4 *************** *** 34,37 **** --- 34,40 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 09SEP2001 bga Modified tests to reflect changes to PgVersion object. | + # In particulare, a PgVersion object no longer has a | + # __dict__ attribute, but now acts as a mapping object. | # 06SEP2001 bga Completed the PgResult Member test cases, just have to | # do the PgResult Method test cases. | *************** *** 50,54 **** # Get a connection and a version string to be used globally. cnx = libpq.PQconnectdb("dbname=pypgsql") ! vstr = "%(major)d.%(minor)d" % cnx.version.__dict__ class PgResultMemberTestCases(unittest.TestCase): --- 53,57 ---- # Get a connection and a version string to be used globally. cnx = libpq.PQconnectdb("dbname=pypgsql") ! vstr = "%(major)d.%(minor)d" % cnx.version class PgResultMemberTestCases(unittest.TestCase): *************** *** 234,238 **** def setUp(self): self.cnx = libpq.PQconnectdb('dbname=pypgsql') ! self.vstr = "%(major)d.%(minor)d" % self.cnx.version.__dict__ self.cnx.query('begin work') --- 237,241 ---- def setUp(self): self.cnx = libpq.PQconnectdb('dbname=pypgsql') ! self.vstr = "%(major)d.%(minor)d" % self.cnx.version self.cnx.query('begin work') *************** *** 248,251 **** --- 251,255 ---- def CheckSelectOfNonPrintableString(self): try: + self.cnx.toggleShowQuery a = '\x01\x02\x03\x04' res = self.cnx.query("select %s as a" % repr(a)) |