Skip to content

Commit d1dd087

Browse files
committed
Skip test that cannot work on Python 3.13
Reference: #212 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent a488b31 commit d1dd087

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,13 @@ def test_cli_with_insecure_option():
345345
)
346346

347347

348-
@pytest.mark.skipif(sys.version_info[:2] == (3, 12), reason="Skipping test for Python 3.12")
348+
@pytest.mark.skipif(
349+
sys.version_info[:2] >= (3, 12),
350+
reason="Skipping test for Python 3.12+ because of "
351+
"https://github.com/aboutcode-org/python-inspector/issues/212"
352+
"to avoid error AttributeError: module 'configparser' has no attribute "
353+
"'SafeConfigParser'. Did you mean: 'RawConfigParser'?",
354+
)
349355
@pytest.mark.online
350356
def test_cli_with_insecure_option_testpkh():
351357
setup_py_file = test_env.get_test_loc("insecure-setup-2/setup.py")

0 commit comments

Comments
 (0)