diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 3cd81b2d..f8cbcf17 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -107,7 +107,7 @@ def test_type_hints(self): try: # mypy.main uses sys.stdout for printing # We override it to catch error messages - mypy_main(None, text_io, text_io, [__file__], clean_exit=True) + mypy_main(args=[__file__], stdout=text_io, stderr=text_io, clean_exit=True) except SystemExit: # mypy.main could return errors found inside other files. # filter_errors() will filter out all errors outside this file.