diff --git a/plumbum/machines/paramiko_machine.py b/plumbum/machines/paramiko_machine.py index ab56c2ed..163fadf8 100644 --- a/plumbum/machines/paramiko_machine.py +++ b/plumbum/machines/paramiko_machine.py @@ -190,22 +190,22 @@ class ParamikoMachine(BaseRemoteMachine): class RemoteCommand(BaseRemoteMachine.RemoteCommand): # type: ignore[valid-type, misc] def __or__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __gt__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __rshift__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __ge__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __lt__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __lshift__(self, *_): - raise NotImplementedError("Not supported with ParamikoMachine") + return NotImplemented def __init__( self, diff --git a/tests/test_remote.py b/tests/test_remote.py index 0bd44fb1..b46bba50 100644 --- a/tests/test_remote.py +++ b/tests/test_remote.py @@ -628,7 +628,7 @@ def test_piping(self): with self._connect() as rem: try: rem["ls"] | rem["cat"] - except NotImplementedError: + except (NotImplementedError, TypeError): pass else: pytest.fail("Should not pipe")