Make it easy for tests to use the "real" python interpreter cache.

Review Request #3257 - Created Dec. 15, 2015 and submitted

Information
Benjy Weinberger
pants
Reviewers
pants-reviews
kwlzn, patricklaw
This greatly speeds up tests that need to resolve an interpreter.
We already had this ability in PythonTaskTestBase, I just moved it
to a InterpreterCacheTestMixin, for easier re-use.

I then applied it to test_export.py, which was a very slow set of
tests (around a minute of runtime) due to repeated resolution of
interpreters. With this change those tests run in a 3-5 seconds.

Also fixes a bug in passing profiler paths to PEX.

CI passes: https://travis-ci.org/pantsbuild/pants/builds/96887445

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Kris Wilson
Benjy Weinberger
Benjy Weinberger
Benjy Weinberger
Review request changed

Status: Closed (submitted)

Change Summary:

582c1419ebb3273aa43066fd1f474f0725394d48

Loading...