Switch to a custom NotImplemented error

Some code in the drivers might actually raise the standard
NotImplemented error, and that would be a bug to skip a test if that was
the case. In that case we want the test to fail.

So let's switch to a custom exception that is used to skip the test if
it's raised.

Change-Id: Ideafee0b1f008ff32724fb98d6a477bd3976104d
This commit is contained in:
Julien Danjou
2014-09-12 11:19:09 +02:00
parent 9b81673302
commit 3981a3a300
6 changed files with 50 additions and 26 deletions

View File

@@ -12,7 +12,7 @@ driver you want it to use. Different drivers may provide different set of
capabilities.
If a driver does not support a feature, it will raise a
:class:`~NotImplementedError` exception.
:class:`~tooz.NotImplemented` exception.
This example program loads a basic coordinataor using the ZooKeeper based
driver.