Speed up pytype_test by reducing subprocess calls. (#2868)
Speed up pytype_test by reducing subprocess calls. (#2868)

Speeds up pytype considerably by directly calling pytype.io.parse_pyi
rather than running `pytype --parse-pyi` in a subprocess.
The subprocess logic is still required to handle the one pyi file
marked `# parse only` in the pytype blacklist. Once
https://github.com/google/pytype/issues/242 is fixed, the test code
can be cleaned up considerably.
euresti/typeshed