diff --git a/tests/test_core/test_lib/test_format_traceback.py b/tests/test_core/test_lib/test_format_traceback.py index 23a20249..5ae92043 100644 --- a/tests/test_core/test_lib/test_format_traceback.py +++ b/tests/test_core/test_lib/test_format_traceback.py @@ -149,7 +149,9 @@ def test_exception_expression_remove_py310() -> None: ZeroDivisionError: division by zero''' -@pytest.mark.skipif(PYTHON_313, reason='New traceback from python 3.11 and 3.12') +@pytest.mark.skipif( + PYTHON_313 or (not PYTHON_311 and not PYTHON_312 and not PYTHON_313), + reason='New traceback from python 3.11 and 3.12') def test_exception_expression_remove_py_311_312() -> None: log.setLevel(logging.WARNING) msg = exec_func(func_test_assert_none)