From d567c81c68943bd9c485560696db866f5d88485c Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Sun, 28 Jul 2024 09:22:48 -0700 Subject: [PATCH] chore: fix skipif for ssh2 things in unit tests --- tests/unit/transport/test_ssh2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/transport/test_ssh2.py b/tests/unit/transport/test_ssh2.py index 35c6d53..21420fb 100644 --- a/tests/unit/transport/test_ssh2.py +++ b/tests/unit/transport/test_ssh2.py @@ -5,7 +5,9 @@ from scrapli_netconf.driver import NetconfDriver -@pytest.mark.skipif(sys.version_info > (3, 11), reason="skipping ssh2 on 3.12") +@pytest.mark.skipif( + (sys.version_info >= (3, 12) or sys.platform != "linux"), reason="skipping ssh2 on 3.12" +) def test_init(): # importing in here for now to not break 3.11 tests from scrapli_netconf.transport.plugins.ssh2.transport import NetconfSsh2Transport