Skip to content

Commit

Permalink
Ensure deterministic checking in check_unit_test_file_coverage_test
Browse files Browse the repository at this point in the history
Ref. None
  • Loading branch information
andrestt committed Aug 8, 2024
1 parent bca2e60 commit f1da68b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/check_unit_test_file_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ def check_file_coverage(

ignore = ignore or []

source_files = [
s.relative_to(source_dir) for ext in ("**/*.py", "**/*.pyi") for s in source_dir.glob(ext)
]
test_files = [t.relative_to(test_dir) for t in test_dir.glob("**/*.py")]
source_files = sorted(
[
s.relative_to(source_dir)
for ext in ("**/*.py", "**/*.pyi")
for s in source_dir.glob(ext)
],
)
test_files = sorted([t.relative_to(test_dir) for t in test_dir.glob("**/*.py")])

excess_source_files = [
str(source_file)
Expand Down

0 comments on commit f1da68b

Please sign in to comment.