summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
Diffstat (limited to 'test/option')
-rw-r--r--test/option/help-options.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/option/help-options.py b/test/option/help-options.py
index 0f4dd4d..2b48a66 100644
--- a/test/option/help-options.py
+++ b/test/option/help-options.py
@@ -60,11 +60,10 @@ lines = [x[0] == '-' and x[1:] or x for x in lines]
options = [x.split()[0] for x in lines]
options = [x[-1] == ',' and x[:-1] or x for x in options]
lowered = [x.lower() for x in options]
-sorted = lowered[:]
-sorted.sort()
-if lowered != sorted:
+ordered = sorted(lowered)
+if lowered != ordered:
print "lowered =", lowered
- print "sorted =", sorted
+ print "sorted =", ordered
test.fail_test()
test.pass_test()