diff --git a/mypy/test/helpers.py b/mypy/test/helpers.py index 77757d782e29..6e891d54bf1b 100644 --- a/mypy/test/helpers.py +++ b/mypy/test/helpers.py @@ -39,11 +39,6 @@ def run_mypy(args: List[str]) -> None: pytest.fail(msg="Sample check failed", pytrace=False) -def use_builtins_fixtures(options): - root_dir = dirname(dirname(dirname(__file__))) - options.path_prefix = os.path.join(root_dir, 'test-data', 'unit', 'lib-stub') - - def assert_string_arrays_equal(expected: List[str], actual: List[str], msg: str) -> None: """Assert that two string arrays are equal. diff --git a/mypy/test/testselfcheck.py b/mypy/test/testselfcheck.py index 9c28f323312c..e2b08714f4cd 100644 --- a/mypy/test/testselfcheck.py +++ b/mypy/test/testselfcheck.py @@ -5,7 +5,8 @@ class SelfCheckSuite(Suite): def test_mypy_package(self) -> None: - run_mypy(['-p', 'mypy']) + run_mypy(['--config-file', 'mypy_self_check.ini', '-p', 'mypy']) def test_testrunner(self) -> None: - run_mypy(['runtests.py', 'waiter.py']) + run_mypy(['--config-file', 'mypy_self_check.ini', + '--no-warn-unused-configs', 'runtests.py', 'waiter.py'])