From c05da53b5da73768c8026fc0b3ae3c79e2d0f8cb Mon Sep 17 00:00:00 2001 From: William Deegan Date: Wed, 11 Oct 2017 21:32:57 -0400 Subject: Fix tests where the GenerateHelpText() sort function was never correct and fixing the logic broke the test because of that --- test/Deprecated/Options/Options.py | 4 ++-- test/Variables/Variables.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Deprecated/Options/Options.py b/test/Deprecated/Options/Options.py index e415739..f196b79 100644 --- a/test/Deprecated/Options/Options.py +++ b/test/Deprecated/Options/Options.py @@ -334,8 +334,8 @@ opts.Add('UNSPECIFIED', env = Environment(options=opts) -def compare(a,b): - return a < b +def compare(a, b): + return (a > b) - (a < b) Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env,sort=compare)) diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py index 17b33af..0fe3745 100644 --- a/test/Variables/Variables.py +++ b/test/Variables/Variables.py @@ -320,8 +320,8 @@ opts.Add('UNSPECIFIED', env = Environment(variables=opts) -def compare(a,b): - return a < b +def compare(a, b): + return (a > b) - (a < b) Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env,sort=compare)) -- cgit v0.12