summaryrefslogtreecommitdiffstats
path: root/test/Deprecated
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-10-12 01:32:57 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-10-12 01:32:57 (GMT)
commitc05da53b5da73768c8026fc0b3ae3c79e2d0f8cb (patch)
treeea084d62b99e908dcea33ca8dccaecb2b2ffc551 /test/Deprecated
parent4f7b5abd7c9fe05a6f894005fdd3586c87d02462 (diff)
downloadSCons-c05da53b5da73768c8026fc0b3ae3c79e2d0f8cb.zip
SCons-c05da53b5da73768c8026fc0b3ae3c79e2d0f8cb.tar.gz
SCons-c05da53b5da73768c8026fc0b3ae3c79e2d0f8cb.tar.bz2
Fix tests where the GenerateHelpText() sort function was never correct and fixing the logic broke the test because of that
Diffstat (limited to 'test/Deprecated')
-rw-r--r--test/Deprecated/Options/Options.py4
1 files changed, 2 insertions, 2 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))