You have been subscribed to a public bug:

Please do not use *magic* in your autopilot tests. Especially when it's
not obvious. For example, this is a really really bad idea:

 def __getattribute__(self, attr_name):
        attr = object.__getattribute__(self, attr_name);
        if attr_name.startswith("test_"):
            try:
                if self.form_factor() in attr.blacklist:
                    return self.skipWrapper
            except:
                pass
        return attr


If you want to skip a test, autopilot provides a nice, explicit, and most 
importantly - obvious way to do it:

http://unity.ubuntu.com/autopilot/api/platform.html#skipping-tests-
based-on-platform

** Affects: unity8 (Ubuntu)
     Importance: Undecided
     Assignee: Christopher Lee (veebers)
         Status: Fix Released


** Tags: autopilot
-- 
Autopiot tests skip tests using *magic*. Don't do that.
https://bugs.launchpad.net/bugs/1200453
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to