Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Nov 13, 2024
1 parent c8da639 commit 1012416
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_core/test_lib/test_format_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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'''
Expand Down Expand Up @@ -282,7 +282,7 @@ def test_skip_objs(_setup_ir) -> None:
func = <function func_ir at 0xAAAAAAAAAAAAAAAA>
------------------------------------------------------------
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
Expand Down

0 comments on commit 1012416

Please sign in to comment.