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