Skip to content

Conversation

@SuvarnaNarayanan
Copy link

With SshMachine, if we were to use windows specific path, it translates into something like /c/Users/... which isn't a compatible path for the scp call in windows. I have changed the logic that calls the translation function to run only when the underlying platform isn't windows, which fixes the problem.

Also, some basic test cases fix to prevent ImportError when trying to get printenv

from plumbum._testtools import skip_on_windows

with contextlib.suppress(ModuleNotFoundError):
with contextlib.suppress(ModuleNotFoundError, ImportError):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
with contextlib.suppress(ModuleNotFoundError, ImportError):
with contextlib.suppress(ImportError):

ModuleNotFoundError is an ImportError

Not sure about the other change yet, just noting this quickly.

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.

3 participants