[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


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!"
  




More information about the Python-checkins mailing list