diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -715,5 +715,5 @@ from mercurial import policy bdiff = policy.importmod('bdiff') return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)] - except (ImportError, AttributeError) as ex: + except (ImportError, AttributeError): return False