Skip to content

Commit d6a77d3

Browse files
committed
Fix the tests of dev/run-tests
1 parent def2d8a commit d6a77d3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev/run-tests.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
# Functions for traversing module dependency graph
3333
# -------------------------------------------------------------------------------------------------
3434

35+
3536
def determine_modules_for_files(filenames):
3637
"""
3738
Given a list of filenames, return the set of modules that contain those files.
3839
If a file is not associated with a more specific submodule, then this method will consider that
3940
file to belong to the 'root' module.
4041
4142
>>> sorted(x.name for x in determine_modules_for_files(["python/pyspark/a.py", "sql/test/foo"]))
42-
['pyspark', 'sql']
43+
['pyspark-core', 'sql']
4344
>>> [x.name for x in determine_modules_for_files(["file_not_matched_by_any_subproject"])]
4445
['root']
4546
"""
@@ -90,8 +91,11 @@ def determine_modules_to_test(changed_modules):
9091
['root']
9192
>>> sorted(x.name for x in determine_modules_to_test([modules.graphx]))
9293
['examples', 'graphx']
93-
>>> sorted(x.name for x in determine_modules_to_test([modules.sql]))
94-
['examples', 'hive-thriftserver', 'mllib', 'pyspark', 'sparkr', 'sql']
94+
>>> x = sorted(x.name for x in determine_modules_to_test([modules.sql]))
95+
>>> x # doctest: +NORMALIZE_WHITESPACE
96+
['examples', 'hive-thriftserver', 'mllib', 'pyspark-core', \
97+
'pyspark-mllib', 'pyspark-sql', 'pyspark-sql', 'pyspark-streaming', \
98+
'sparkr', 'sql']
9599
"""
96100
# If we're going to have to run all of the tests, then we can just short-circuit
97101
# and return 'root'. No module depends on root, so if it appears then it will be

0 commit comments

Comments
 (0)