Skip to content

Commit

Permalink
[test_examples.Test_fetch_example_data.test_alias_unzip_to_otherfile]…
Browse files Browse the repository at this point in the history
… sort output of os.listdir before checking
  • Loading branch information
gph82 committed Oct 19, 2024
1 parent a92aa29 commit 1972be7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ def test_alias_unzip_to_otherfile(self):
unzip="unzip_here")
assert os.path.exists(local_path)
# assert os.path.exists((os.path.splitext(local_path))[0])
files = os.listdir(td)
files = sorted(os.listdir(td))
assert len(files) == 2
assert files[0] == "unzip_here.zip"
assert files[1] == "unzip_here"
assert files[0] == "unzip_here"
assert files[1] == "unzip_here.zip"
extracted = sorted(os.listdir(files[1]))
assert extracted[0] == "A.dat"
assert extracted[1] == "B.dat"
Expand Down

0 comments on commit 1972be7

Please sign in to comment.