[pypy-svn] rev 2587 - in pypy/trunk/src/pypy/tool: . testdata

hpk at codespeak.net hpk at codespeak.net
Fri Dec 19 17:30:03 CET 2003


Author: hpk
Date: Fri Dec 19 17:30:03 2003
New Revision: 2587

Modified:
   pypy/trunk/src/pypy/tool/newtest.py
   pypy/trunk/src/pypy/tool/testdata/   (props changed)
   pypy/trunk/src/pypy/tool/testdata/__init__.py   (props changed)
   pypy/trunk/src/pypy/tool/testdata/test_dummy.py   (props changed)
   pypy/trunk/src/pypy/tool/traceinteractive.py   (props changed)
Log:
fixeol + minor changes to the newtest module



Modified: pypy/trunk/src/pypy/tool/newtest.py
==============================================================================
--- pypy/trunk/src/pypy/tool/newtest.py	(original)
+++ pypy/trunk/src/pypy/tool/newtest.py	Fri Dec 19 17:30:03 2003
@@ -466,7 +466,7 @@
         for item in self.items:
             result = item.run()
             key = classify(result)
-            self.last_resuaalts.setdefault(key, []).append(result)
+            self.last_results.setdefault(key, []).append(result)
             yield result
 
     def run(self):
@@ -476,7 +476,7 @@
         """
         # perform all the tests by using the existing generator; discard
         # the results; they are then available via self.last_results
-        [result for result in self.result_generator()]
+        return [result for result in self.result_generator()]
 
 #
 # demonstrate test framework usage


More information about the Pypy-commit mailing list