diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2020-06-11 18:36:20 +0200 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2020-06-11 18:36:20 +0200 |
commit | 5c7696dd8a53b91b81346b1b04af8ef8e550707d (patch) | |
tree | c2c7a22012b0cc5fef529dbbb8fc630177ed4f7b /tests | |
parent | e3ae26d49c32ee26c963ddea0885e75916295eee (diff) | |
download | rsa-git-5c7696dd8a53b91b81346b1b04af8ef8e550707d.tar.gz |
Compatibility with newer MyPy versions
The newer versions always have a message, even on success.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_mypy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class MypyRunnerTest(unittest.TestCase): 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)) |