List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:May 5 2007 6:51am
Subject:Rev 100: Cleaned up the python test file a bit. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/exceptions
View as plain text  
------------------------------------------------------------
revno: 100
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: exceptions
timestamp: Fri 2007-05-04 23:51:06 -0700
message:
  Cleaned up the python test file a bit.
modified:
  python/test.py                
svn-v2:1@5fca6d9a-db22-0410-b55c-899b0a28da89-trunk-python%2ftest.py
=== modified file 'python/test.py'
--- a/python/test.py	2007-05-02 02:56:57 +0000
+++ b/python/test.py	2007-05-05 06:51:06 +0000
@@ -88,7 +88,7 @@
   if ret == -1:
     print myTransaction.getNdbError().getMessage()
   
-  #myTransaction.close()
+  myTransaction.close()
 
 after_t = time.time()
 print "Insert time for %s: %s -- %s" % ( INSERT_NUM, after_t, before_t)
@@ -125,7 +125,7 @@
     ids.append(random_id)
       
     
-#myTransaction.close()
+myTransaction.close()
 
 
 ### Fetch ids using ndb
@@ -150,16 +150,8 @@
     
     if myTrans.execute( ndbapi.Commit ) == -1:
         print myTrans.getNdbError().getMessage()
-    #foo=myRecAttr.u_32_value()
     foo=myRecAttr.get_value()
-    #print foo, myRecAttr.getColType(), myRecAttr.get_value()
-    #print "before first"
-    #myTrans.close()
-    #print "before new"
-    #del(myTrans)
-    #print "after del"
-    myTrans = myNdb.startTransaction("mytablename","%s"%id_num)
-    #print "after new Trans"
+    myTrans.close()
       
 
 after_t = time.time()

Thread
Rev 100: Cleaned up the python test file a bit. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/exceptionsMonty Taylor5 May