Issue 152: Default Tags, Test Setup, Test Teardown and Test Timeout do not
work properly in __init__ files
http://code.google.com/p/robotframework/issues/detail?id=152
Comment #2 by pekka.klarck:
The problem is caused by test suite parent data passed to test cases in a
list
without copying it. Tests then say data.reverse later and thus alter the
original
list. Simple fix is below, but there's room for some more refactoring
related to this.
Index: src/robot/running/model.py
===================================================================
--- src/robot/running/model.py (revision 995)
+++ src/robot/running/model.py (working copy)
@@ -48,7 +48,7 @@
self.teardown = utils.get_not_none(suitedata.suite_teardown, [])
self.suites = [ RunnableTestSuite(suite, parentdatas)
for suite in suitedata.suites ]
- self.tests = [ RunnableTestCase(test, parentdatas)
+ self.tests = [ RunnableTestCase(test, parentdatas[:])
for test in suitedata.tests ]
if self.name == '': # suitedata was multisource suite
self.name = ' & '.join([suite.name for suite in self.suites])
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings