[pypy-svn] rev 2485 - pypy/trunk/src/pypy/tool

sschwarzer at codespeak.net sschwarzer at codespeak.net
Thu Dec 18 12:38:49 CET 2003


Author: sschwarzer
Date: Thu Dec 18 12:38:49 2003
New Revision: 2485

Modified:
   pypy/trunk/src/pypy/tool/newtest.py
Log:
Added implementation note on TestItem run's pretest and posttest arguments.


Modified: pypy/trunk/src/pypy/tool/newtest.py
==============================================================================
--- pypy/trunk/src/pypy/tool/newtest.py	(original)
+++ pypy/trunk/src/pypy/tool/newtest.py	Thu Dec 18 12:38:49 2003
@@ -71,6 +71,12 @@
         doesn't complete successfully). Like for pretest, the
         callable gets the TestItem instance as only argument.
         """
+        # Note on pretest and posttest: I discarded the idea to
+        # supply this functionality by having hypothetical methods
+        # pretest and posttest overwritten in derived classes. That
+        # approach would require to support a factory class for test
+        # items in TestSuite. I wanted to avoid this.
+
         # credit: adapted from Python's unittest.TestCase.run
         #XXX at a later time, this method may accept an object space
         #  as argument


More information about the Pypy-commit mailing list