Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e82640

Browse files
committed
Add comments to the blob section.
1 parent 5c0aa82 commit 2e82640

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/standard_libraries/test_glob.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
def test_glob():
1212
"""File Wildcards."""
1313

14+
# == operator for lists relies on the order of elements in the list.
15+
# In some cases (like on Linux Mint, python3.6) the glob() function returns list
16+
# in reverse order then it might be expected. Thus lets sort both lists before comparison
17+
# using sorted() built-in function.
1418
assert sorted(glob.glob('src/standard_libraries/glob_files/*.txt')) == sorted([
1519
'src/standard_libraries/glob_files/first_file.txt',
1620
'src/standard_libraries/glob_files/second_file.txt'

0 commit comments

Comments
 (0)