diff --git a/SconsTests/utils.py b/SconsTests/utils.py index 58078c6c75..e7b46e84f1 100644 --- a/SconsTests/utils.py +++ b/SconsTests/utils.py @@ -95,7 +95,10 @@ def CheckPortaudio(context, version): } """, '.c')[1] - ret = (found and (version <= found)) + if found: + ret = (version <= found) + else: + ret = 0 context.Result(ret) return int(ret)