~jfb-tempo-consulting/unifield-wm/sync-env-py3

« back to all changes in this revision

Viewing changes to unittest27/runner.py

  • Committer: jf
  • Date: 2022-02-01 10:24:52 UTC
  • mfrom: (173.1.1 sync-env)
  • Revision ID: jfb@tempo-consulting.fr-20220201102452-rndr3uvmo030kqlf
[MERGE] US-9423: instance registration: do not validate an instance with no group on the sync server

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
 
166
166
        expectedFails = unexpectedSuccesses = skipped = 0
167
167
        try:
168
 
            results = list(map(len, (result.expectedFailures,
 
168
            results = map(len, (result.expectedFailures,
169
169
                                result.unexpectedSuccesses,
170
 
                                result.skipped)))
 
170
                                result.skipped))
171
171
        except AttributeError:
172
172
            pass
173
173
        else:
176
176
        infos = []
177
177
        if not result.wasSuccessful():
178
178
            self.stream.write("FAILED")
179
 
            failed, errored = list(map(len, (result.failures, result.errors)))
 
179
            failed, errored = map(len, (result.failures, result.errors))
180
180
            if failed:
181
181
                infos.append("failures=%d" % failed)
182
182
            if errored: