diff options
Diffstat (limited to 'test/GetBuildFailures/serial.py')
-rw-r--r-- | test/GetBuildFailures/serial.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/GetBuildFailures/serial.py b/test/GetBuildFailures/serial.py index a240d1e..752b348 100644 --- a/test/GetBuildFailures/serial.py +++ b/test/GetBuildFailures/serial.py @@ -89,9 +89,7 @@ Command('f15', 'f15.in', returnExcAction(SCons.Errors.InternalError("My Internal def print_build_failures(): from SCons.Script import GetBuildFailures - bf_list = GetBuildFailures() - bf_list.sort(lambda a,b: cmp(str(a.node), str(b.node))) - for bf in bf_list: + for bf in sorted(GetBuildFailures(), key=lambda t: str(t.node)): assert( isinstance(bf, SCons.Errors.BuildError) ) print "BF: %%s failed (%%s): %%s" %% (bf.node, bf.status, bf.errstr) if bf.command: |