Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-azarchs committed Jun 1, 2022
1 parent 01cb844 commit 313343d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ private static void assertHasOrderAndContainsExactly(
public void factoryMethod_InBuildRuntime() throws Exception {
NestedSet<Artifact> files = NestedSetBuilder.create(Order.STABLE_ORDER, dummyFile);
PyRuntimeInfo inBuildRuntime =
PyRuntimeInfo.createForInBuildRuntime(dummyInterpreter, files, PythonVersion.PY2, null);
PyRuntimeInfo.createForInBuildRuntime(
dummyInterpreter, files, null, null, PythonVersion.PY2, null);

assertThat(inBuildRuntime.getCreationLocation()).isEqualTo(Location.BUILTIN);
assertThat(inBuildRuntime.getInterpreterPath()).isNull();
Expand All @@ -75,7 +76,7 @@ public void factoryMethod_InBuildRuntime() throws Exception {
public void factoryMethod_PlatformRuntime() {
PathFragment path = PathFragment.create("/system/interpreter");
PyRuntimeInfo platformRuntime =
PyRuntimeInfo.createForPlatformRuntime(path, PythonVersion.PY2, null);
PyRuntimeInfo.createForPlatformRuntime(path, null, null, PythonVersion.PY2, null);

assertThat(platformRuntime.getCreationLocation()).isEqualTo(Location.BUILTIN);
assertThat(platformRuntime.getInterpreterPath()).isEqualTo(path);
Expand Down

0 comments on commit 313343d

Please sign in to comment.