Skip to content

Commit

Permalink
chore: fix skipif for ssh2 things in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jul 28, 2024
1 parent a351d0e commit d567c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/transport/test_ssh2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d567c81

Please sign in to comment.