diff --git a/nutils/evaluable.py b/nutils/evaluable.py index 208f75a74..fa15704cc 100644 --- a/nutils/evaluable.py +++ b/nutils/evaluable.py @@ -989,8 +989,8 @@ def _intbounds(self): return value, value else: lower, upper = self._intbounds_impl() - assert isinstance(lower, int) or lower == float('-inf') or lower == float('inf') - assert isinstance(upper, int) or upper == float('-inf') or upper == float('inf') + assert isinstance(lower, int) or lower == float('-inf') + assert isinstance(upper, int) or upper == float('inf') assert lower <= upper return lower, upper