commit | 5c7696dd8a53b91b81346b1b04af8ef8e550707d | [log] [tgz] |
---|---|---|
author | Sybren A. Stüvel <sybren@stuvel.eu> | Thu Jun 11 18:36:20 2020 +0200 |
committer | Sybren A. Stüvel <sybren@stuvel.eu> | Thu Jun 11 18:36:20 2020 +0200 |
tree | c2c7a22012b0cc5fef529dbbb8fc630177ed4f7b | |
parent | e3ae26d49c32ee26c963ddea0885e75916295eee [diff] [blame] |
Compatibility with newer MyPy versions The newer versions always have a message, even on success.
diff --git a/tests/test_mypy.py b/tests/test_mypy.py index c2a9745..8258e7e 100644 --- a/tests/test_mypy.py +++ b/tests/test_mypy.py
@@ -23,5 +23,5 @@ 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))