diff --git a/kallithea/lib/utils2.py b/kallithea/lib/utils2.py --- a/kallithea/lib/utils2.py +++ b/kallithea/lib/utils2.py @@ -318,7 +318,8 @@ def obfuscate_url_pw(engine): return str(_url) -class HookEnvironmentError(Exception): pass +class HookEnvironmentError(Exception): + pass def get_hook_environment(): diff --git a/kallithea/tests/other/test_vcs_operations.py b/kallithea/tests/other/test_vcs_operations.py --- a/kallithea/tests/other/test_vcs_operations.py +++ b/kallithea/tests/other/test_vcs_operations.py @@ -591,7 +591,8 @@ class TestVCSOperations(base.TestControl assert 'HTTP Error 500: INTERNAL SERVER ERROR' in stderr elif vt is HgSshVcsTest: assert 'remote: Exception: exception_test_hook threw an exception' in stdout - else: assert False + else: + assert False # there are still outgoing changesets stdout, stderr = _check_outgoing(vt.repo_type, dest_dir, clone_url) assert stdout != ''