# HG changeset patch # User Mads Kiilerich # Date 2023-03-05 10:56:05 # Node ID 0e7dab99898425c6eb34ac315abd6529ddf7ef49 # Parent 7037365a7bc351b81f05c790c6d3417d81d7bd5d ruff: fix multiple statements on one line 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 != ''