diff --git a/mypy/test/helpers.py b/mypy/test/helpers.py index 6e891d54bf1b..2dafc500d6e0 100644 --- a/mypy/test/helpers.py +++ b/mypy/test/helpers.py @@ -32,7 +32,8 @@ def run_mypy(args: List[str]) -> None: __tracebackhide__ = True outval, errval, status = api.run(args + ['--show-traceback', - '--no-site-packages']) + '--no-site-packages', + '--no-silence-site-packages']) if status != 0: sys.stdout.write(outval) sys.stderr.write(errval) diff --git a/mypy/test/testpythoneval.py b/mypy/test/testpythoneval.py index d2b497717b6e..bc69155cf8f7 100644 --- a/mypy/test/testpythoneval.py +++ b/mypy/test/testpythoneval.py @@ -50,7 +50,12 @@ def test_python_evaluation(testcase: DataDrivenTestCase, cache_dir: str) -> None """ assert testcase.old_cwd is not None, "test was not properly set up" # TODO: Enable strict optional for these tests - mypy_cmdline = ['--show-traceback', '--no-site-packages', '--no-strict-optional'] + mypy_cmdline = [ + '--show-traceback', + '--no-site-packages', + '--no-strict-optional', + '--no-silence-site-packages', + ] py2 = testcase.name.lower().endswith('python2') if py2: mypy_cmdline.append('--py2')