From ee2dc1bd643123195a63b035a702c4928e5b522a Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Tue, 28 Jan 2025 20:12:25 +0100 Subject: [PATCH] utils: abbreviate delta for Python 3.12 argparse Signed-off-by: Zygmunt Krynicki (cherry picked from commit 0acc1387128af4cef98a5c1ffc60ecd90aead519) Signed-off-by: John Johansen --- utils/test/test-aa-notify.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/test/test-aa-notify.py b/utils/test/test-aa-notify.py index bc2a9dc6f..804d5c66a 100644 --- a/utils/test/test-aa-notify.py +++ b/utils/test/test-aa-notify.py @@ -243,18 +243,18 @@ Filtering options: # # https://github.com/python/cpython/pull/103372 patches = [( - ' -f, --file FILE search FILE for AppArmor messages', - ' -f FILE, --file FILE search FILE for AppArmor messages', + ', --file FILE ', + ' FILE, --file FILE', ), ( - ' -s, --since-days NUM show stats for last NUM days (can be used alone or with', - ' -s NUM, --since-days NUM\n' + ', --since-days NUM show stats for last NUM days (can be used alone or with', + ' NUM, --since-days NUM\n' + ' show stats for last NUM days (can be used alone or with', ), ( - ' -u, --user USER user to drop privileges to when not using sudo', - ' -u USER, --user USER user to drop privileges to when not using sudo', + ', --user USER ', + ' USER, --user USER', ), ( - ' -w, --wait NUM wait NUM seconds before displaying notifications (with', - ' -w NUM, --wait NUM wait NUM seconds before displaying notifications (with', + ', --wait NUM ', + ' NUM, --wait NUM', )] for patch in patches: expected_output_2 = expected_output_2.replace(patch[0], patch[1])