From 3bdc5b515e6161f0628145fc51fd389349c1059f Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 29 Nov 2023 15:37:34 +0530 Subject: [PATCH] python3.12 support --- .github/workflows/pylint.yml | 1 + lib/jnpr/junos/utils/start_shell.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b8ca5dc85..97ba6f533 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -45,4 +45,5 @@ jobs: - name: Run unit tests run: | + echo $SHELL nose2 -vvv tests.unit diff --git a/lib/jnpr/junos/utils/start_shell.py b/lib/jnpr/junos/utils/start_shell.py index 57034a346..520de8ee6 100644 --- a/lib/jnpr/junos/utils/start_shell.py +++ b/lib/jnpr/junos/utils/start_shell.py @@ -113,6 +113,7 @@ def open(self): :class:`paramiko.SSHClient` instance. """ if self.ON_JUNOS is True: + print("Debug1", self.ON_JUNOS) self._chan = subprocess.Popen( ["cli", "start", "shell", self.shell_type], shell=False, @@ -122,6 +123,7 @@ def open(self): bufsize=0, ) else: + print("Debug2", self.ON_JUNOS) self._client = open_ssh_client(dev=self._nc) self._chan = self._client.invoke_shell()