From dd7cf5b4334cf3debce369e5ca3d7d312c16d6c2 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sun, 20 Oct 2024 21:51:21 +0200 Subject: [PATCH 1/2] Empty commit to confirm CI failure From 36b20495ad124ea68ee8b7caecf98579a9489918 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sun, 20 Oct 2024 21:55:35 +0200 Subject: [PATCH 2/2] Sort the result of iterdir to ensure consistency in test --- tests/cli/env/test_create.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/cli/env/test_create.py b/tests/cli/env/test_create.py index 7106f4479..f5de70c02 100644 --- a/tests/cli/env/test_create.py +++ b/tests/cli/env/test_create.py @@ -1560,13 +1560,11 @@ def update(self, metadata): storage_path = storage_dirs[0] assert len(storage_path.name) == 8 - env_dirs = list(storage_path.iterdir()) - assert len(env_dirs) == 2 + env_dirs = sorted(storage_path.iterdir()) + assert [d.name for d in env_dirs] == ['hatch-build', 'test'] env_path = env_dirs[1] - assert env_path.name == 'test' - with UVVirtualEnv(env_path, platform): output = platform.run_command([uv_on_path, 'pip', 'freeze'], check=True, capture_output=True).stdout.decode( 'utf-8'