Skip to content

tests: fix issue with os.environ binding#41342

Merged
alalazo merged 1 commit intospack:developfrom
haampie:fix/flaky-test
Nov 30, 2023
Merged

tests: fix issue with os.environ binding#41342
alalazo merged 1 commit intospack:developfrom
haampie:fix/flaky-test

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Nov 29, 2023

Before this spack unit-test lib/spack/spack/test/util/environment.py lib/spack/spack/test/module_parsing.py failed.

I don't wanna figure out what's wrong with rebinding os.environ to something else, but mutating the instance is more sensible to me anyways; maybe in the fixture os.environ after yielding still refers to the original instance, somehow?

@spackbot-app spackbot-app bot added core PR affects Spack core functionality tests General test capability(ies) labels Nov 29, 2023
@haampie
Copy link
Copy Markdown
Member Author

haampie commented Nov 29, 2023

lmao, this one fails due to the issue resolved in #41344

@alalazo alalazo enabled auto-merge (squash) November 30, 2023 05:24
@alalazo alalazo disabled auto-merge November 30, 2023 06:18
@alalazo alalazo merged commit 377e7de into spack:develop Nov 30, 2023
@haampie haampie deleted the fix/flaky-test branch November 30, 2023 17:51
@alalazo alalazo mentioned this pull request Jan 2, 2024
36 tasks
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 31, 2024
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core PR affects Spack core functionality tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants