Decrease Mypy concurrent process count (#1618)

Mypy has issues with running its test suite with many processes
concurrently. This should reduce travis test failures, if not completely
resolve failures. See issue https://github.com/python/mypy/issues/3543
This commit is contained in:
Ethan Smith
2017-09-20 13:01:56 -07:00
committed by Jelle Zijlstra
parent 3d505d0c6b
commit 8ab207bcee

View File

@@ -19,7 +19,7 @@ if __name__ == '__main__':
shutil.copytree('stdlib', str(dirpath / 'mypy/typeshed/stdlib'))
shutil.copytree('third_party', str(dirpath / 'mypy/typeshed/third_party'))
try:
subprocess.run(['./runtests.py'], cwd=str(dirpath / 'mypy'), check=True)
subprocess.run(['./runtests.py', '-j12'], cwd=str(dirpath / 'mypy'), check=True)
except subprocess.CalledProcessError as e:
print('mypy tests failed', file=sys.stderr)
sys.exit(e.returncode)