[py-svn] r51669 - py/branch/event/py/test2

hpk at codespeak.net hpk at codespeak.net
Wed Feb 20 09:52:32 CET 2008


Author: hpk
Date: Wed Feb 20 09:52:30 2008
New Revision: 51669

Modified:
   py/branch/event/py/test2/item.py
   py/branch/event/py/test2/session.py
Log:
complete last checkin - gee! seems i am really in incremental commit mode :)


Modified: py/branch/event/py/test2/item.py
==============================================================================
--- py/branch/event/py/test2/item.py	(original)
+++ py/branch/event/py/test2/item.py	Wed Feb 20 09:52:30 2008
@@ -1,5 +1,4 @@
 import py
-
 from py.__.test2.collect import FunctionMixin, Base
 from py.__.test2 import present
 
@@ -31,6 +30,15 @@
             self.stack.append(col) 
 
 class Item(Base): 
+    def runtest(self):
+        from py.__.test2.executor import RunExecutor, BoxExecutor
+        cls = RunExecutor 
+        if self._config.option.boxed:
+            cls = BoxExecutor 
+        executor = cls(self, self._config)
+        testrep = executor.execute() 
+        self._config.bus.notify(testrep) 
+
     def startcapture(self): 
         self._config._startcapture(self, path=self.fspath)
 

Modified: py/branch/event/py/test2/session.py
==============================================================================
--- py/branch/event/py/test2/session.py	(original)
+++ py/branch/event/py/test2/session.py	Wed Feb 20 09:52:30 2008
@@ -8,7 +8,6 @@
 import py
 from py.__.test2.genitem import genitems 
 from py.__.test2 import repevent
-from py.__.test2.executor import RunExecutor, BoxExecutor
 
 class Session(object): 
     """ 


More information about the py-svn mailing list