Tests: Swap order of findUnusedObjects' output to ease sorting

Change-Id: I477ae2f6d5c57de158d1408330a76cf4e4ebdae9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-01-11 13:56:43 +01:00
parent e8df914ef2
commit dd16fca686

View File

@@ -2,7 +2,7 @@
############################################################################
#
# Copyright (C) 2016 The Qt Company Ltd.
# Copyright (C) 2019 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/
#
# This file is part of Qt Creator.
@@ -147,10 +147,9 @@ def printResult():
print "%s" % obj
return True
else:
length = max(map(len, useCounts.keys()))
outFormat = "%%%ds %%3d" % length
outFormat = "%3d %s"
for obj,useCount in useCounts.iteritems():
print outFormat % (obj, useCount)
print outFormat % (useCount, obj)
print
return None