Skip to content
  • Enrico Granata's avatar
    <rdar://problem/13289828> · d7ac9816
    Enrico Granata authored
    Categories were conceptually meant to be placeable on test methods as well as test classes and test directories
    However, that was broken. This checkin fixes that.
    The incantation required to put categories on individual test case methods is not exactly elegant, unfortunately:
    
    def test_case(self):
        """Test me."""
        self.do_it()
    
    def _test_case_get_categories(self):
        return ["demo"]
    
    test_case.getCategories = _test_case_get_categories
    del _test_case_get_categories
    
    llvm-svn: 176158
    d7ac9816
Loading