27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
|
From 0186f21027682a4c7013ddf75aa35f530fc2a090 Mon Sep 17 00:00:00 2001
|
||
|
From: Maxwell G <maxwell@gtmx.me>
|
||
|
Date: Tue, 13 Jun 2023 13:29:40 +0000
|
||
|
Subject: [PATCH] Disable test that calls compat code removed in 3.12
|
||
|
|
||
|
---
|
||
|
test/units/utils/collection_loader/test_collection_loader.py | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/test/units/utils/collection_loader/test_collection_loader.py b/test/units/utils/collection_loader/test_collection_loader.py
|
||
|
index 9be59307a9..9a27692ea5 100644
|
||
|
--- a/test/units/utils/collection_loader/test_collection_loader.py
|
||
|
+++ b/test/units/utils/collection_loader/test_collection_loader.py
|
||
|
@@ -29,7 +29,8 @@ def teardown(*args, **kwargs):
|
||
|
# BEGIN STANDALONE TESTS - these exercise behaviors of the individual components without the import machinery
|
||
|
|
||
|
|
||
|
-@pytest.mark.skipif(not PY3, reason='Testing Python 2 codepath (find_module) on Python 3')
|
||
|
+@pytest.mark.skipif(not PY3 or sys.version_info[:2] >= (3, 12),
|
||
|
+ reason='Testing Python 2 codepath (find_module) on Python 3')
|
||
|
def test_find_module_py3():
|
||
|
dir_to_a_file = os.path.dirname(ping_module.__file__)
|
||
|
path_hook_finder = _AnsiblePathHookFinder(_AnsibleCollectionFinder(), dir_to_a_file)
|
||
|
--
|
||
|
2.40.1
|
||
|
|