From 1012416311d8941e66b59b83c5058e164ffad2a8 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:53:27 +0100 Subject: [PATCH] . --- tests/test_core/test_lib/test_format_traceback.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_core/test_lib/test_format_traceback.py b/tests/test_core/test_lib/test_format_traceback.py index 84996860..99606fc0 100644 --- a/tests/test_core/test_lib/test_format_traceback.py +++ b/tests/test_core/test_lib/test_format_traceback.py @@ -6,7 +6,7 @@ from pydantic import BaseModel import HABApp -from HABApp.core.const.const import PYTHON_311, PYTHON_313 +from HABApp.core.const.const import PYTHON_311, PYTHON_312, PYTHON_313 from HABApp.core.const.json import dump_json, load_json from HABApp.core.lib import format_exception from HABApp.core.lib.exceptions.format_frame import SUPPRESSED_HABAPP_PATHS, is_lib_file, is_suppressed_habapp_file @@ -103,7 +103,7 @@ def func_test_assert_none(a: str | None = None, b: str | None = None, c: str | i print(CONFIGURATION) -@pytest.mark.skipif(PYTHON_311, reason='Traceback Python 3.10') +@pytest.mark.skipif(PYTHON_311 or PYTHON_312 or PYTHON_313, reason='Traceback Python 3.10') def test_exception_expression_remove_py310() -> None: log.setLevel(logging.WARNING) msg = exec_func(func_test_assert_none) @@ -149,8 +149,8 @@ def test_exception_expression_remove_py310() -> None: ZeroDivisionError: division by zero''' -@pytest.mark.skipif(PYTHON_313, reason='New traceback from python 3.11-3.13') -def test_exception_expression_remove() -> None: +@pytest.mark.skipif(not PYTHON_311 or not PYTHON_312, 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) assert msg == r''' @@ -282,7 +282,7 @@ def test_skip_objs(_setup_ir) -> None: func = ------------------------------------------------------------ -File "test_core/test_lib/test_format_traceback.py", line 205 in func_ir +File "test_core/test_lib/test_format_traceback.py", line 253 in func_ir -------------------------------------------------------------------------------- 199 | def func_ir() -> None: 201 | from HABApp.core.items import Item