ipatests.util.ClassChecker: Raise AttributeError in get_subcls

Pytest considers NotImplementedError on attribute access an error.

https://fedorahosted.org/freeipa/ticket/4610

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Petr Viktorin 2014-10-07 15:22:59 +02:00 committed by Tomas Babej
parent 2b24faf3c1
commit f3409ea031

View File

@ -443,7 +443,7 @@ class ClassChecker(object):
subcls = property(__get_subcls)
def get_subcls(self):
raise NotImplementedError(
raise AttributeError(
self.__class__.__name__,
'get_subcls()'
)