diff --git a/setupext.py b/setupext.py index 52c1e716f0b8..a93635760e90 100644 --- a/setupext.py +++ b/setupext.py @@ -1462,7 +1462,7 @@ def check(self): raise CheckFailed("Can't build with Travis") if sys.version_info[0] >= 3: - return "gtk3agg backend does not work on Python 3" + raise CheckFailed("gtk3agg backend does not work on Python 3") # This check needs to be performed out-of-process, because # importing gi and then importing regular old pygtk afterward