xp-framework/xp-framework — pull request #173 by thekid (2012-07-07 15:33:52+00:00)
Title: Unittest skip

This pull request adds a method `skip()` to `unittest.TestCase` which will allow programmatically skipping a test while it's being run. Previously tests could only be skipped by raising a `PrerequisitesNotMetError` from inside `setUp()` or `@beforeClass` methods.

```sh
$ unittest -e '$this->skip("Skipped!");'
[S]

OK: 0/1 run (1 skipped), 0 succeeded, 0 failed
Memory used: 2169.16 kB (2531.75 kB peak)
Time taken: 0.000 seconds
```