Skip to content

Commit

Permalink
Compatibility with newer MyPy versions
Browse files Browse the repository at this point in the history
The newer versions always have a message, even on success.
  • Loading branch information
sybrenstuvel committed Jun 11, 2020
1 parent e3ae26d commit 5c7696d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def test_run_mypy(self):
messages.append(stdout)
if status:
messages.append('Mypy failed with status %d' % status)
if messages:
if messages and not all('Success' in message for message in messages):
self.fail('\n'.join(['Mypy errors:'] + messages))

0 comments on commit 5c7696d

Please sign in to comment.