=== tmp/django/test/testcases.py
==================================================================
|
|
|
285 | 285 | testMethod = getattr(self, self._testMethodName) |
286 | 286 | if (getattr(self.__class__, "__unittest_skip__", False) or |
287 | 287 | getattr(testMethod, "__unittest_skip__", False)): |
| 288 | # If the class or method was skipped. |
| 289 | result.startTest(self) |
| 290 | try: |
| 291 | skip_why = (getattr(self.__class__, '__unittest_skip_why__', '') |
| 292 | or getattr(testMethod, '__unittest_skip_why__', '')) |
| 293 | self._addSkip(result, skip_why) |
| 294 | finally: |
| 295 | result.stopTest(self) |
288 | 296 | return |
289 | 297 | |
290 | 298 | self.client = self.client_class() |