Hello,
The reason `test.teardown = None' doesn't work is that `setup` and
`teardown` are read-only propertys, but they could definitely be
settable. Could you submit an issue about it? Even better if you can
create a pull request.
It's great that setting `
teardown.name = None` works, but it fails for
AttributeError if you don't have a teardown in the first place. In
general it would be cleaner to remove the teardown altogether. I
though this would work
if test.keywords.teardown:
test.keywords.pop()
but it seems ItemList object that Keywords object inherits doesn't
have `pop`. Instead this ought to work:
if test.keywords.teardown:
test.keywords[-1:] = []
It would be a good idea to add `pop` to ItemList to make it easier to
use. Could you submit an issue/pr about that too? `pop` could be used
by the aforementioned settable `setup/teardown`.
Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
robotframework-u...@googlegroups.com.
> To post to this group, send email to
robotframe...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/robotframework-users.
> For more options, visit
https://groups.google.com/d/optout.
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org