diff --git a/testdata/doubledata.py b/testdata/doubledata.py
index b544404640dae51d2562092bfbc143a8ace53e16..a608930016e4ad9e8db20d407c7f44ed8a3aa4c0 100755
--- a/testdata/doubledata.py
+++ b/testdata/doubledata.py
@@ -133,7 +133,7 @@ for key in keysends:
         print "# ERROR: missing recv key: ", key
 
 # Reorder recvs to same order as sends.
-nrecvs = [recvs[i] for i in msends]
+recvs = [recvs[i] for i in msends]
     
 # Now we can split and retag. XXX if you run out of tags need to
 # split by rank and then maybe itype and use tag count with these.