Skip to content

Commit c9e54bf

Browse files
committed
Use set to avoid jar path duplication
1 parent 64fc499 commit c9e54bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/testing/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def search_jar(project_relative_path, sbt_jar_name_prefix, mvn_jar_name_prefix):
158158
project_full_path, "target/**/%s*.jar" % sbt_jar_name_prefix), recursive=True)
159159
maven_build = glob.glob(os.path.join(
160160
project_full_path, "target/%s*.jar" % mvn_jar_name_prefix))
161-
jar_paths = sbt_build + maven_build
161+
jar_paths = set(sbt_build + maven_build)
162162
jars = [jar for jar in jar_paths if not jar.endswith(ignored_jar_suffixes)]
163163

164164
if not jars:

0 commit comments

Comments
 (0)