# HG changeset patch # User Matt Harbison # Date 2017-12-10 04:46:44 # Node ID acff41957b3442ee47ba69cf32d6a687cfbde8db # Parent 6c28956ba2d49894ea2df35fad00d895247f34db tests: stabilize the sorted output of list-tree.py on Windows The test-largefiles-misc.t test was moving 'dir2\' before 'dir\' because while '/' precedes most of the printable ASCII characters, '\' comes after numbers and capital letters, among other symbols. diff --git a/tests/list-tree.py b/tests/list-tree.py --- a/tests/list-tree.py +++ b/tests/list-tree.py @@ -24,4 +24,4 @@ def gather(): else: yield p -print('\n'.join(sorted(gather()))) +print('\n'.join(sorted(gather(), key=lambda x: x.replace(os.path.sep, '/'))))