Revision: 3237
Author: janne.t.harkonen
Date: Fri May  7 09:59:15 2010
Log: Only serialize fixtures that have a keyword
http://code.google.com/p/robotframework/source/detail?r=3237

Modified:
 /trunk/src/robot/running/fixture.py

=======================================
--- /trunk/src/robot/running/fixture.py Fri May  7 05:25:59 2010
+++ /trunk/src/robot/running/fixture.py Fri May  7 09:59:15 2010
@@ -38,8 +38,9 @@
                 error_listener.notify(err)

     def serialize(self, serializer):
-        serializer.start_keyword(self._keyword)
-        serializer.end_keyword(self._keyword)
+        if self._keyword:
+            serializer.start_keyword(self._keyword)
+            serializer.end_keyword(self._keyword)


 class Setup(_Fixture): pass

Reply via email to