From 0acc1387128af4cef98a5c1ffc60ecd90aead519 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 --- 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 41a588f58..74c26dd06 100644 --- a/utils/test/test-aa-notify.py +++ b/utils/test/test-aa-notify.py @@ -245,18 +245,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])