]> git.ipfire.org Git - pbs.git/commitdiff
tests: Fix directory listing
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 16:35:35 +0000 (16:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 16:35:35 +0000 (16:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/test.py

index b8b2cd519573620ede5e4f1ef212276a1434384d..4bc7c6e443097f028b0d65813d3f4110d3e56d13 100644 (file)
@@ -99,7 +99,7 @@ class TestCase(unittest.IsolatedAsyncioTestCase):
        async def asyncTearDown(self):
                # Dump a listing of all temporary files
                with os.scandir(self.testdir.name) as listing:
-                       for entry in sorted(listing):
+                       for entry in sorted(listing, key=lambda e: e.path):
                                print("  %s" % entry.path)
 
                # Removing any temporary files