[Python-checkins] python/dist/src/Lib/bsddb/test test_associate.py,
1.6, 1.7 test_basics.py, 1.10, 1.11 test_dbtables.py, 1.6, 1.7
doerwalter at users.sourceforge.net
doerwalter at users.sourceforge.net
Thu Feb 12 12:35:41 EST 2004
- Previous message: [Python-checkins] python/dist/src/Lib/bsddb dbrecio.py, 1.2,
1.3 dbtables.py, 1.9, 1.10
- Next message: [Python-checkins] python/dist/src/Lib/distutils cmd.py, 1.35,
1.36 core.py, 1.58, 1.59 dir_util.py, 1.12, 1.13 dist.py, 1.63,
1.64 fancy_getopt.py, 1.27, 1.28 util.py, 1.73, 1.74
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/bsddb/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21620/Lib/bsddb/test
Modified Files:
test_associate.py test_basics.py test_dbtables.py
Log Message:
Replace backticks with repr() or "%r"
>From SF patch #852334.
Index: test_associate.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_associate.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_associate.py 21 Sep 2003 00:08:14 -0000 1.6
--- test_associate.py 12 Feb 2004 17:35:08 -0000 1.7
***************
*** 201,205 ****
assert type(priData) == type("")
if verbose:
! print 'getGenre key:', `priKey`, 'data:', `priData`
genre = string.split(priData, '|')[2]
if genre == 'Blues':
--- 201,205 ----
assert type(priData) == type("")
if verbose:
! print 'getGenre key: %r data: %r' % (priKey, priData)
genre = string.split(priData, '|')[2]
if genre == 'Blues':
***************
*** 243,247 ****
assert type(priData) == type(())
if verbose:
! print 'getGenre key:', `priKey`, 'data:', `priData`
genre = priData[2]
if genre == 'Blues':
--- 243,247 ----
assert type(priData) == type(())
if verbose:
! print 'getGenre key: %r data: %r' % (priKey, priData)
genre = priData[2]
if genre == 'Blues':
Index: test_basics.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_basics.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_basics.py 13 Jan 2004 19:59:57 -0000 1.10
--- test_basics.py 12 Feb 2004 17:35:08 -0000 1.11
***************
*** 362,366 ****
self.fail("expected exception")
if n != None:
! self.fail("expected None: "+`n`)
rec = c.get_both('0404', self.makeData('0404'))
--- 362,366 ----
self.fail("expected exception")
if n != None:
! self.fail("expected None: %r" % (n,))
rec = c.get_both('0404', self.makeData('0404'))
***************
*** 376,380 ****
self.fail("expected exception")
if n != None:
! self.fail("expected None: "+`n`)
if self.d.get_type() == db.DB_BTREE:
--- 376,380 ----
self.fail("expected exception")
if n != None:
! self.fail("expected None: %r" % (n,))
if self.d.get_type() == db.DB_BTREE:
***************
*** 549,553 ****
assert num >= 1, "truncate returned <= 0 on non-empty database"
num = d.truncate()
! assert num == 0, "truncate on empty DB returned nonzero (%s)" % `num`
#----------------------------------------------------------------------
--- 549,553 ----
assert num >= 1, "truncate returned <= 0 on non-empty database"
num = d.truncate()
! assert num == 0, "truncate on empty DB returned nonzero (%r)" % (num,)
#----------------------------------------------------------------------
***************
*** 675,679 ****
assert num >= 1, "truncate returned <= 0 on non-empty database"
num = d.truncate(txn)
! assert num == 0, "truncate on empty DB returned nonzero (%s)" % `num`
txn.commit()
--- 675,679 ----
assert num >= 1, "truncate returned <= 0 on non-empty database"
num = d.truncate(txn)
! assert num == 0, "truncate on empty DB returned nonzero (%r)" % (num,)
txn.commit()
Index: test_dbtables.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_dbtables.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_dbtables.py 21 Sep 2003 00:08:14 -0000 1.6
--- test_dbtables.py 12 Feb 2004 17:35:08 -0000 1.7
***************
*** 110,114 ****
else :
if verbose:
! print "values=", `values`
raise "Wrong values returned!"
--- 110,114 ----
else :
if verbose:
! print "values= %r" % (values,)
raise "Wrong values returned!"
- Previous message: [Python-checkins] python/dist/src/Lib/bsddb dbrecio.py, 1.2,
1.3 dbtables.py, 1.9, 1.10
- Next message: [Python-checkins] python/dist/src/Lib/distutils cmd.py, 1.35,
1.36 core.py, 1.58, 1.59 dir_util.py, 1.12, 1.13 dist.py, 1.63,
1.64 fancy_getopt.py, 1.27, 1.28 util.py, 1.73, 1.74
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list