diff options
Diffstat (limited to 'tests/test_mypy.py')
-rw-r--r-- | tests/test_mypy.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_mypy.py b/tests/test_mypy.py index b13cdcc..8cc0d59 100644 --- a/tests/test_mypy.py +++ b/tests/test_mypy.py @@ -4,16 +4,16 @@ import unittest import mypy.api -test_modules = ['rsa', 'tests'] +test_modules = ["rsa", "tests"] class MypyRunnerTest(unittest.TestCase): def test_run_mypy(self): proj_root = pathlib.Path(__file__).parent.parent args = [ - '--incremental', - '--ignore-missing-imports', - f'--python-version={sys.version_info.major}.{sys.version_info.minor}' + "--incremental", + "--ignore-missing-imports", + f"--python-version={sys.version_info.major}.{sys.version_info.minor}", ] + [str(proj_root / dirname) for dirname in test_modules] result = mypy.api.run(args) @@ -26,6 +26,6 @@ class MypyRunnerTest(unittest.TestCase): if stdout: messages.append(stdout) if status: - messages.append('Mypy failed with status %d' % status) - if messages and not all('Success' in message for message in messages): - self.fail('\n'.join(['Mypy errors:'] + messages)) + messages.append("Mypy failed with status %d" % status) + if messages and not all("Success" in message for message in messages): + self.fail("\n".join(["Mypy errors:"] + messages)) |