Index: fact/tools/pyscripts/pyfact/pyfact.py
===================================================================
--- fact/tools/pyscripts/pyfact/pyfact.py	(revision 13320)
+++ fact/tools/pyscripts/pyfact/pyfact.py	(revision 13321)
@@ -321,5 +321,5 @@
 # end of class definition: fnames( object )
 
-def _test_iter():
+def _test_iter( nevents ):
     """ test for function __iter__ """
 
@@ -331,9 +331,11 @@
 
     for data, scell, tt in run:
-        print 'data[0,0] = ', data[0,0], "start_cell[0] =", scell[0], "trigger type = ", tt
-
-
+        print 'ev ', run.event_id.value, 'data[0,0] = ', data[0,0], 'start_cell[0] = ', scell[0], 'trigger type = ', tt
+        if run.event_id.value == nevents:
+            break
+	
+    
 if __name__ == '__main__':
     """ tests  """
 
-    _test_iter()
+    _test_iter(10)
