Skip to content

Commit 90fe157

Browse files
committed
Updated docs.
1 parent 2b90e62 commit 90fe157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_paths.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def test_iterchildren(data_regression: DataRegressionFixture):
668668

669669
children = list((repo_path / "domdf_python_tools").iterchildren())
670670
assert children
671-
data_regression.check([p.relative_to(repo_path).as_posix() for p in children])
671+
data_regression.check(sorted(p.relative_to(repo_path).as_posix() for p in children))
672672

673673

674674
def test_iterchildren_exclusions():
@@ -692,8 +692,8 @@ def test_iterchildren_match(data_regression: DataRegressionFixture):
692692

693693
children = list(repo_path.iterchildren(match="**/*.py"))
694694
assert children
695-
696-
child_paths = [p.relative_to(repo_path).as_posix() for p in children]
695+
696+
child_paths = sorted(p.relative_to(repo_path).as_posix() for p in children)
697697

698698
for exclude_filename in {".coverage", "pathtype_demo.py"}:
699699
if exclude_filename in child_paths:

0 commit comments

Comments
 (0)