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'