diff --git a/tests/test_examples.py b/tests/test_examples.py index 6818e7a5..99e3d090 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -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"