fix selftest (#2425)

Now that the typeshed submodule has moved.
This commit is contained in:
Jelle Zijlstra
2018-09-03 10:35:20 -07:00
committed by GitHub
parent 01abd34327
commit 6f62466d6f

View File

@@ -16,8 +16,8 @@ if __name__ == '__main__':
str(dirpath / 'mypy')], check=True)
subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r',
str(dirpath / 'mypy/test-requirements.txt')], check=True)
shutil.copytree('stdlib', str(dirpath / 'mypy/typeshed/stdlib'))
shutil.copytree('third_party', str(dirpath / 'mypy/typeshed/third_party'))
shutil.copytree('stdlib', str(dirpath / 'mypy/mypy/typeshed/stdlib'))
shutil.copytree('third_party', str(dirpath / 'mypy/mypy/typeshed/third_party'))
try:
subprocess.run(['pytest', '-n12'], cwd=str(dirpath / 'mypy'), check=True)
except subprocess.CalledProcessError as e: