Skip to content

Commit

Permalink
fix: rare test failure that could occur in test_copy_directory_cases. F…
Browse files Browse the repository at this point in the history
…ixes #161
  • Loading branch information
Erotemic committed Dec 6, 2024
1 parent f0ef8e2 commit 5587e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This project (loosely) adheres to [Semantic Versioning](https://semver.org/spec/
* Minor test issues.
* `ub.IndexableWalker.diff` for empty inputs
* Bug in `memoize_method` which could produce incorrect results if methods from different instances are assigned to variables.
* Rare error in `test_copy_directory_cases` test due to list sorting.

### Changed
* Added module name printout to `schedule_deprecation`
Expand Down
2 changes: 1 addition & 1 deletion tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def demo_nested_paths(dpath, nfiles=2, ndirs=1, depth=0):


def relative_contents(dpath):
return [p.relative_to(dpath) for p in dpath.glob('**')]
return [p.relative_to(dpath) for p in sorted(dpath.glob('**'), key=str)]


def test_copy_directory_cases():
Expand Down

0 comments on commit 5587e05

Please sign in to comment.