Revision: 3674
Author: janne.t.harkonen
Date: Sun May 30 23:30:36 2010
Log: Fix templates with comment rows
http://code.google.com/p/robotframework/source/detail?r=3674

Modified:
 /trunk/src/robot/parsing/model.py

=======================================
--- /trunk/src/robot/parsing/model.py   Fri May 28 03:40:17 2010
+++ /trunk/src/robot/parsing/model.py   Sun May 30 23:30:36 2010
@@ -160,7 +160,7 @@
         return table

     def add_child(self, path, include_suites):
-        self.children.append(TestData(parent=self,source=path,
+        self.children.append(TestData(parent=self,source=path,
                                       include_suites=include_suites))

     def __iter__(self):
@@ -496,5 +496,7 @@
         return False

     def apply_template(self, template):
+        if self.is_comment():
+            return self
         kw = [self.keyword] if self.keyword else []
         return Step([template] + self.assign + kw + self.args)

Reply via email to