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

Use sys.executable when testing with -m fabric #2209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,7 @@ def python_dash_m_acts_like_fab(self, capsys):
Paramiko .+
Invoke .+
""".strip()
output = run("python -m fabric --version", hide=True, in_stream=False)
output = run(
sys.executable + " -m fabric --version", hide=True, in_stream=False
)
assert re.match(expected_output, output.stdout)