Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c0aa82 commit 2e82640Copy full SHA for 2e82640
‎src/standard_libraries/test_glob.py
@@ -11,6 +11,10 @@
11
def test_glob():
12
"""File Wildcards."""
13
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.
18
assert sorted(glob.glob('src/standard_libraries/glob_files/*.txt')) == sorted([
19
'src/standard_libraries/glob_files/first_file.txt',
20
'src/standard_libraries/glob_files/second_file.txt'
0 commit comments