fix mypy_selftest (#1369)

Related to python/mypy#3337.
This commit is contained in:
Ethan Smith
2017-05-28 23:30:54 -07:00
committed by Jelle Zijlstra
parent e006fafe2a
commit be80c36816

View File

@@ -11,6 +11,7 @@ import tempfile
if __name__ == '__main__':
with tempfile.TemporaryDirectory() as tempdir:
dirpath = Path(tempdir)
subprocess.run(['python2.7', '-m', 'pip', 'install', '--user', 'typing'], check=True)
subprocess.run(['git', 'clone', '--depth', '1', 'git://github.com/python/mypy',
str(dirpath / 'mypy')], check=True)
subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r',