summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2020-06-11 18:36:20 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2020-06-11 18:36:20 +0200
commit5c7696dd8a53b91b81346b1b04af8ef8e550707d (patch)
treec2c7a22012b0cc5fef529dbbb8fc630177ed4f7b /tests
parente3ae26d49c32ee26c963ddea0885e75916295eee (diff)
downloadrsa-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.py2
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))