@@ -341,8 +341,8 @@ def test_automatic_reset_after_failure(self):
341341 session .run ("X" ).close ()
342342 except CypherError :
343343 result = session .run ("RETURN 1" )
344- next (result )
345- assert result [0 ] == 1
344+ record = next (result )
345+ assert record [0 ] == 1
346346 else :
347347 assert False , "A Cypher error should have occurred"
348348
@@ -435,8 +435,8 @@ def test_can_commit_transaction(self):
435435
436436 # Create a node
437437 result = tx .run ("CREATE (a) RETURN id(a)" )
438- next (result )
439- node_id = result [0 ]
438+ record = next (result )
439+ node_id = record [0 ]
440440 assert isinstance (node_id , int )
441441
442442 # Update a property
@@ -448,18 +448,18 @@ def test_can_commit_transaction(self):
448448 # Check the property value
449449 result = session .run ("MATCH (a) WHERE id(a) = {n} "
450450 "RETURN a.foo" , {"n" : node_id })
451- next (result )
452- foo = result [0 ]
453- assert foo == "bar"
451+ record = next (result )
452+ value = record [0 ]
453+ assert value == "bar"
454454
455455 def test_can_rollback_transaction (self ):
456456 with GraphDatabase .driver ("bolt://localhost" , auth = auth_token ).session () as session :
457457 tx = session .begin_transaction ()
458458
459459 # Create a node
460460 result = tx .run ("CREATE (a) RETURN id(a)" )
461- next (result )
462- node_id = result [0 ]
461+ record = next (result )
462+ node_id = record [0 ]
463463 assert isinstance (node_id , int )
464464
465465 # Update a property
@@ -478,8 +478,8 @@ def test_can_commit_transaction_using_with_block(self):
478478 with session .begin_transaction () as tx :
479479 # Create a node
480480 result = tx .run ("CREATE (a) RETURN id(a)" )
481- next (result )
482- node_id = result [0 ]
481+ record = next (result )
482+ node_id = record [0 ]
483483 assert isinstance (node_id , int )
484484
485485 # Update a property
@@ -491,17 +491,17 @@ def test_can_commit_transaction_using_with_block(self):
491491 # Check the property value
492492 result = session .run ("MATCH (a) WHERE id(a) = {n} "
493493 "RETURN a.foo" , {"n" : node_id })
494- next (result )
495- foo = result [0 ]
496- assert foo == "bar"
494+ record = next (result )
495+ value = record [0 ]
496+ assert value == "bar"
497497
498498 def test_can_rollback_transaction_using_with_block (self ):
499499 with GraphDatabase .driver ("bolt://localhost" , auth = auth_token ).session () as session :
500500 with session .begin_transaction () as tx :
501501 # Create a node
502502 result = tx .run ("CREATE (a) RETURN id(a)" )
503- next (result )
504- node_id = result [0 ]
503+ record = next (result )
504+ node_id = record [0 ]
505505 assert isinstance (node_id , int )
506506
507507 # Update a property
0 commit comments