e6fca77674554e516cfb358d1b395986acd3f7e7,tests/python/pants_test/backend/project_info/tasks/test_export.py,ExportTest,test_preferred_jvm_distributions,#ExportTest#,397
Before Change
self.assertFalse(result["targets"]["src/python/alpha:alpha"]["is_synthetic"])
def test_preferred_jvm_distributions(self):
with temporary_dir() as strict_jdk_home:
with temporary_dir() as non_strict_jdk_home:
strict_cache_key = (Revision(1, 6), Revision(1, 6, 9999), False)
non_strict_cache_key = (Revision(1, 6), None, False)
DistributionLocator._CACHE[strict_cache_key] = Distribution(home_path=strict_jdk_home)
DistributionLocator._CACHE[non_strict_cache_key] = Distribution(home_path=non_strict_jdk_home)
self.assertEqual({"strict": strict_jdk_home, "non_strict": non_strict_jdk_home},
self.execute_export_json()["preferred_jvm_distributions"]["java6"])
After Change
with self.fake_distribution(version="10000") as non_strict_home:
self.set_options_for_scope("jvm-distributions",
paths={
normalize_os_name(get_os_name()): [
strict_home,
non_strict_home
]
})
with subsystem_instance(DistributionLocator) as locator:
locator._reset() // Make sure we get a fresh read from the options set just above.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: e6fca77674554e516cfb358d1b395986acd3f7e7
Time: 2016-05-02
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/project_info/tasks/test_export.py
Class Name: ExportTest
Method Name: test_preferred_jvm_distributions
Project Name: pantsbuild/pants
Commit Name: f2a35263aacacf10e1b2d622cd39c7c66ea39acb
Time: 2019-11-25
Author: ericarellano@me.com
File Name: src/python/pants/fs/fs_test.py
Class Name: WorkspaceInConsoleRuleTest
Method Name: test
Project Name: pantsbuild/pants
Commit Name: 1e8ddb230898452103347759fd9424fd342daf69
Time: 2019-10-04
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/backend/project_info/tasks/resolve_jars_test_mixin.py
Class Name: ResolveJarsTestMixin
Method Name: _test_jar_lib_with_url