Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update tests to use pyenv #232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: update tests to use pyenv #232

wants to merge 1 commit into from

Conversation

giovtorres
Copy link
Member

This change updates the test suite to use pyenv for the test suite.

@giovtorres giovtorres self-assigned this Feb 26, 2022

def test_run():
host = testinfra.get_host(f"docker://slurmctl")
python = f'python{os.environ.get("PYTHON")}'
host.run(f'pyenv global {version_map[os.environ.get("PYTHON")]}')
Copy link

@junkert junkert Aug 16, 2023

Choose a reason for hiding this comment

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

shouldn't this be host.run(f'pyenv local {version_map[os.environ.get("PYTHON")]}')?

This will cause a change to the system level version of the Python interrupter shim which I doubt is the goal here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants