'The @unittest.skip decorator calls functools.wraps(self._testcase)
The call to functools.wraps() fails unless self._testcase
has a __name__ attribute. This is usually automatically supplied
if the test is a function or method, but we need to add manually
here.
See issue #1169'

def _fix_unittest_skip_decorator(self):

    if (sys.version_info[0] == 2):
        setattr(self._testcase, '__name__', self.name)
