diff options
Diffstat (limited to 'tests/testutils/patch.py')
-rw-r--r-- | tests/testutils/patch.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/testutils/patch.py b/tests/testutils/patch.py index 6dec68ca9..85b38def8 100644 --- a/tests/testutils/patch.py +++ b/tests/testutils/patch.py @@ -5,9 +5,7 @@ def apply(file, patch): try: subprocess.check_output(["patch", file, patch]) except subprocess.CalledProcessError as e: - message = "Patch failed with exit code {}\n Output:\n {}".format( - e.returncode, e.output - ) + message = "Patch failed with exit code {}\n Output:\n {}".format(e.returncode, e.output) print(message) raise @@ -16,8 +14,6 @@ def remove(file, patch): try: subprocess.check_output(["patch", "--reverse", file, patch]) except subprocess.CalledProcessError as e: - message = "patch --reverse failed with exit code {}\n Output:\n {}".format( - e.returncode, e.output - ) + message = "patch --reverse failed with exit code {}\n Output:\n {}".format(e.returncode, e.output) print(message) raise |