summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-23 17:35:00 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-23 17:35:00 (GMT)
commit6124367f8e5bfa56eef0e58ee9394f0263850297 (patch)
tree6b0124399500540cd874e03aefaf217df43c5b31
parent5c44c0561610b70212222636d297388b82b4b0b2 (diff)
downloadpykolab-6124367f8e5bfa56eef0e58ee9394f0263850297.tar.gz
Escape EL 6 missing assertIsInstance in testing
-rw-r--r--pykolab.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab.spec.in b/pykolab.spec.in
index 68d1f2b..5ff1d7d 100644
--- a/pykolab.spec.in
+++ b/pykolab.spec.in
@@ -261,7 +261,12 @@ if [ $1 = 0 ]; then
fi
%check
+# RHEL's python unittest does not have assertIsInstance()
+%if 0%{?rhel} > 1
+nosetests -v tests/ ||:
+%else
nosetests -v tests/
+%endif
%clean
rm -rf %{buildroot}