mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
check_pythonload: Updated assert print.
Print out failing files in order in a python3-friendly way. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
2f78d9f62b
commit
131947dc74
@ -56,9 +56,11 @@ class loadModule(unittest.TestCase):
|
||||
except Exception as x:
|
||||
failures[pyfile] = x
|
||||
|
||||
skeys = list(failures.keys())
|
||||
skeys.sort()
|
||||
self.assertEqual(len(failures), 0,
|
||||
'\n\nFailed to load %d modules:\n' % len(failures) +
|
||||
'\n'.join(['%s: %s' % (k, ', '.join(failures[k])) for k in failures.keys()]))
|
||||
'\n'.join(['%s: %s' % (k, failures[k]) for k in skeys]))
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Allow passing from argv
|
||||
|
Loading…
x
Reference in New Issue
Block a user