summaryrefslogtreecommitdiffstats
path: root/ipatests/util.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-10-07 15:22:59 +0200
committerTomas Babej <tbabej@redhat.com>2014-11-21 12:14:44 +0100
commitf3409ea031a23268030552aeacb26ba168622be5 (patch)
treeb7cb756ad3be06cc93922021c6e45c4cb59145e8 /ipatests/util.py
parent2b24faf3c13752f7f6e1d926902201e657ba13cc (diff)
downloadfreeipa-f3409ea031a23268030552aeacb26ba168622be5.tar.gz
freeipa-f3409ea031a23268030552aeacb26ba168622be5.tar.xz
freeipa-f3409ea031a23268030552aeacb26ba168622be5.zip
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>
Diffstat (limited to 'ipatests/util.py')
-rw-r--r--ipatests/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/util.py b/ipatests/util.py
index 9d9562c58..522952b00 100644
--- a/ipatests/util.py
+++ b/ipatests/util.py
@@ -443,7 +443,7 @@ class ClassChecker(object):
subcls = property(__get_subcls)
def get_subcls(self):
- raise NotImplementedError(
+ raise AttributeError(
self.__class__.__name__,
'get_subcls()'
)