MyPy test fix
Newer versions of MyPy aren't silent any more when they complete succesfully, so test for 'Success' in the message before failing the test.
This commit is contained in:
parent
d3be952a77
commit
782293b360
@ -28,5 +28,5 @@ class MypyRunnerTest(unittest.TestCase):
|
|||||||
messages.append(stdout)
|
messages.append(stdout)
|
||||||
if status:
|
if status:
|
||||||
messages.append('Mypy failed with status %d' % status)
|
messages.append('Mypy failed with status %d' % status)
|
||||||
if messages:
|
if messages and not all(msg.startswith('Success: ') for msg in messages):
|
||||||
self.fail('\n'.join(['Mypy errors:'] + messages))
|
self.fail('\n'.join(['Mypy errors:'] + messages))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user