forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade the python task tests to use TaskTestBase.
1) Upgrades the PythonTaskTest to extend TaskTestBase instead of TaskTest. 2) Make all relevant tests subclass PythonTaskTest. 3) Move a bunch of common code into that base class. I removed some rather hacky code whose ostensible purpose was to make the code under test use the test-invoking code's InterpreterCache. It would have been hard to make this code work under the new scheme, but in any case, no benchmarks I ran could detect any performance difference before and after. Even if I kept the old code but just commented out that hack I could see no performance difference. Let's revisit this performance issue if it crops up, or feel free to show me that this is necessary and I'll figure something out. Testing Done: CI passes: https://travis-ci.org/pantsbuild/pants/builds/57187738 Reviewed at https://rbcommons.com/s/twitter/r/2031/
- Loading branch information
Showing
6 changed files
with
97 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.