Skip to content

Commit

Permalink
Fix failing test due to unsorted iterdir (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb authored Oct 21, 2024
1 parent c70a178 commit 9650a1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/cli/env/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

2 comments on commit 9650a1d

@DylanLukes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this unblocks #1588.

@ofek
Copy link
Collaborator

@ofek ofek commented on 9650a1d Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks I reran the CI on that PR

Please sign in to comment.