Test skipped because it requested a disallowed resource. This is raised when a test calls requires() for a resource that has not be enabled. It is used to distinguish between expected and unexpected skips.
| 143 | """Test did not run any subtests.""" |
| 144 | |
| 145 | class ResourceDenied(unittest.SkipTest): |
| 146 | """Test skipped because it requested a disallowed resource. |
| 147 | |
| 148 | This is raised when a test calls requires() for a resource that |
| 149 | has not be enabled. It is used to distinguish between expected |
| 150 | and unexpected skips. |
| 151 | """ |
| 152 | |
| 153 | def anticipate_failure(condition): |
| 154 | """Decorator to mark a test that is known to be broken in some cases |