From f2bcc2e9ec76b3b9b2feee6218de6fcd2b7fd538 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 29 Jul 2025 21:37:09 +0200 Subject: [PATCH] Skip test if github cannot be imported. It currently cannot be imported because nacl isn't compatible with Python 3.14 yet, and importing github indirectly tries to import nacl, which fails as it uses a type from typing that got removed in 3.14. --- tests/unit/plugins/modules/test_github_repo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/plugins/modules/test_github_repo.py b/tests/unit/plugins/modules/test_github_repo.py index 846f766723..9a76fc4b69 100644 --- a/tests/unit/plugins/modules/test_github_repo.py +++ b/tests/unit/plugins/modules/test_github_repo.py @@ -7,11 +7,15 @@ __metaclass__ = type import re import json +import pytest from httmock import with_httmock, urlmatch, response from ansible_collections.community.internal_test_tools.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules import github_repo +pytest.importorskip('github') + + @urlmatch(netloc=r'.*') def debug_mock(url, request): print(request.original.__dict__)