diff --git a/ci-reports/markdown/TEST-REPORT.md b/ci-reports/markdown/TEST-REPORT.md index dfd193df..eb3d4c4d 100644 --- a/ci-reports/markdown/TEST-REPORT.md +++ b/ci-reports/markdown/TEST-REPORT.md @@ -1,6937 +1,4 @@ -โš ๏ธ **Test execution interrupted** - -> The test run was interrupted by the user (reasons : KeyboardInterrupt or ...). - -
-๐Ÿ“‹ Short test summary info - -``` -=========================== short test summary info ============================ -FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing -FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' -FAILED tests/test_io_utils.py::test_permission_error - PermissionError: Permission denied -FAILED tests/test_io_utils.py::test_mock_open_error - OSError: Mocked IOError -FAILED tests/test_io_utils.py::test_file_handle_closed_error - ValueError: I/O operation on closed file -FAILED tests/test_io_utils.py::test_os_error - OSError: Simulated OSError -FAILED tests/test_io_utils.py::test_file_not_found_error - FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' -FAILED tests/test_math_utils.py::test_broken - NameError: name 'want_the_test_to_fail' is not defined -FAILED tests/test_math_utils.py::test_call_missing_function - AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' -FAILED tests/test_math_utils.py::test_addition_fail - assert 4 == 5 - + where 4 = addition(2, 2) -FAILED tests/test_math_utils.py::test_division_zero - ZeroDivisionError: division by zero -FAILED tests/test_math_utils.py::test_runtime_error - RuntimeError: Forced runtime error -FAILED tests/test_math_utils.py::test_memory_error - MemoryError: Simulated memory error -FAILED tests/test_math_utils.py::test_timeout_error - TimeoutError: Simulated timeout error -FAILED tests/test_math_utils.py::test_recursion_error - RecursionError: maximum recursion depth exceeded -FAILED tests/test_math_utils.py::test_floating_point_error - FloatingPointError: Simulated floating point error -FAILED tests/test_math_utils.py::test_floating_point_overflow - OverflowError: math range error -FAILED tests/test_math_utils.py::test_value_error - ValueError: invalid literal for int() with base 10: 'invalid' -FAILED tests/test_math_utils.py::test_wrong_argument_error - TypeError: 'int' object is not iterable -FAILED tests/test_math_utils.py::test_unhandled_exception - Exception: Generic unhandled exception -FAILED tests/test_math_utils.py::test_custom_error - test_math_utils.CustomError: Custom error simulation -FAILED tests/test_math_utils.py::test_stop_iteration_direct - RuntimeError: generator raised StopIteration -FAILED tests/test_math_utils.py::test_generator_exit_direct - GeneratorExit -FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 - def bad(: - ^ -SyntaxError: invalid syntax -FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 -FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function -FAILED tests/test_math_utils.py::test_import_error - ImportError: Simulated ImportError -FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' -FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None -FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte -FAILED tests/test_string_utils.py::test_unicode_decode_surrogateescape - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte -ERROR tests/test_broken_fct.py -ERROR tests/test_collector_error.py -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -/workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt -(to show a full traceback on KeyboardInterrupt use --full-trace) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.67s ========= -``` -
- -
-๐Ÿชต Full raw pytest log - -``` -============================= test session starts ============================== -platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 -rootdir: /workspace/tligui_y/slic -plugins: html-4.1.1, allure-pytest-2.13.5, metadata-3.1.1, cov-5.0.0, json-report-1.5.0, md-report-0.6.2 -collected 49 items / 2 errors - -tests/test_io_utils.py ..FFFFFF.F -tests/test_math_utils.py FF........FFxFFFFFFFFFFFFFFFFF -tests/test_string_utils.py .F..FF.x - -==================================== ERRORS ==================================== -__________________ ERROR collecting tests/test_broken_fct.py ___________________ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule - mod = import_path( -.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path - importlib.import_module(module_name) -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -:975: in _find_and_load_unlocked - ??? -:671: in _load_unlocked - ??? -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module - source_stat, co = _rewrite_test(fn, self.config) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test - tree = ast.parse(source, filename=strfn) -.pixi/envs/default/lib/python3.8/ast.py:47: in parse - return compile(source, filename, mode, flags, -E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 -E def test_valid_2(): -E ^ -E SyntaxError: invalid syntax -________________ ERROR collecting tests/test_collector_error.py ________________ -ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -tests/test_collector_error.py:1: in - from no_existing_module.math_utils import * -E ModuleNotFoundError: No module named 'no_existing_module' -=================================== FAILURES =================================== -_____________________________ test_cause_io_error ______________________________ - - def test_cause_io_error(): - # Raises manual IOError to simulate IO failure -> cause_io_error() - -tests/test_io_utils.py:25: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - - def cause_io_error(): -> raise IOError("Forced IO Error for testing") -E OSError: Forced IO Error for testing - -functions/io_utils.py:10: OSError -_____________________________ test_file_not_found ______________________________ - - def test_file_not_found(): - # Reading non-existing file raises FileNotFoundError -> read_file("nonexistent.file") - -tests/test_io_utils.py:29: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'nonexistent.file' - - def read_file(path): -> with open(path, "r", encoding="utf-8") as f: -E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' - -functions/io_utils.py:2: FileNotFoundError -____________________________ test_permission_error _____________________________ - -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72882b0> - - def test_permission_error(monkeypatch): - # Patch open to raise PermissionError simulating access denial - def raise_perm_error(*args, **kwargs): - raise PermissionError("Permission denied") - monkeypatch.setattr("builtins.open", raise_perm_error) -> read_file("anyfile.txt") - -tests/test_io_utils.py:36: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -functions/io_utils.py:2: in read_file - with open(path, "r", encoding="utf-8") as f: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} - - def raise_perm_error(*args, **kwargs): -> raise PermissionError("Permission denied") -E PermissionError: Permission denied - -tests/test_io_utils.py:34: PermissionError -_____________________________ test_mock_open_error _____________________________ - -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72ba6d0> - - def test_mock_open_error(monkeypatch): - # Mock open() to raise IOError simulating read error - mocked_open = mock.mock_open() - mocked_open.side_effect = IOError("Mocked IOError") - monkeypatch.setattr("builtins.open", mocked_open) -> with open("file.txt", "r") as f: - -tests/test_io_utils.py:43: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ - return self._mock_call(*args, **kwargs) -.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call - return self._execute_mock_call(*args, **kwargs) -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = -args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') - - def _execute_mock_call(self, /, *args, **kwargs): - # separate from _increment_mock_call so that awaited functions are - # executed separately from their call, also AsyncMock overrides this method - - effect = self.side_effect - if effect is not None: - if _is_exception(effect): -> raise effect -E OSError: Mocked IOError - -.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError -________________________ test_file_handle_closed_error _________________________ - - def test_file_handle_closed_error(): - # Accessing closed file raises ValueError - f = io.StringIO("content") - f.close() -> f.read() -E ValueError: I/O operation on closed file - -tests/test_io_utils.py:50: ValueError -________________________________ test_os_error _________________________________ - -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d9368e20> - - def test_os_error(monkeypatch): - # Patch os.remove to raise OSError simulating filesystem error - def raise_os_error(path): - raise OSError("Simulated OSError") - monkeypatch.setattr("os.remove", raise_os_error) -> os.remove("file.txt") - -tests/test_io_utils.py:57: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'file.txt' - - def raise_os_error(path): -> raise OSError("Simulated OSError") -E OSError: Simulated OSError - -tests/test_io_utils.py:55: OSError -__________________________ test_file_not_found_error ___________________________ - - def test_file_not_found_error(): - # Raises FileNotFoundError when opening a non-existent file -> open("no_such_file.txt", "r") -E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' - -tests/test_io_utils.py:69: FileNotFoundError -_________________________________ test_broken __________________________________ - - def test_broken(): - # simulating a broken or faulty test implementation that will cause the test to error -> want_the_test_to_fail -E NameError: name 'want_the_test_to_fail' is not defined - -tests/test_math_utils.py:16: NameError -__________________________ test_call_missing_function __________________________ - - def test_call_missing_function(): - # Accessing a missing function attribute raises AttributeError -> getattr(math_utils, "non_existent_function")() -E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' - -tests/test_math_utils.py:20: AttributeError -______________________________ test_addition_fail ______________________________ - - def test_addition_fail(): - # Assertion failure: expected incorrect result -> assert addition(2, 2) == 5 -E assert 4 == 5 -E + where 4 = addition(2, 2) - -tests/test_math_utils.py:51: AssertionError -______________________________ test_division_zero ______________________________ - - def test_division_zero(): - # Will raise ZeroDivisionError if not handled in division -> division(1, 0) - -tests/test_math_utils.py:55: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -a = 1, b = 0 - - def division(a, b): -> return a / b -E ZeroDivisionError: division by zero - -functions/math_utils.py:5: ZeroDivisionError -______________________________ test_runtime_error ______________________________ - - def test_runtime_error(): - # Test raises an uncaught RuntimeError -> raise RuntimeError("Forced runtime error") -E RuntimeError: Forced runtime error - -tests/test_math_utils.py:64: RuntimeError -______________________________ test_memory_error _______________________________ - - def test_memory_error(): - # Manually raise MemoryError to simulate out-of-memory condition -> raise MemoryError("Simulated memory error") -E MemoryError: Simulated memory error - -tests/test_math_utils.py:68: MemoryError -______________________________ test_timeout_error ______________________________ - - def test_timeout_error(): - # Manually raise TimeoutError simulating timeout conditions -> raise TimeoutError("Simulated timeout error") -E TimeoutError: Simulated timeout error - -tests/test_math_utils.py:72: TimeoutError -_____________________________ test_recursion_error _____________________________ - - def test_recursion_error(): - # Infinite recursion triggers RecursionError - def recursive(): - return recursive() -> recursive() - -tests/test_math_utils.py:78: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -tests/test_math_utils.py:77: in recursive - return recursive() -tests/test_math_utils.py:77: in recursive - return recursive() -E RecursionError: maximum recursion depth exceeded -!!! Recursion detected (same locals & position) -__________________________ test_floating_point_error ___________________________ - - def test_floating_point_error(): - # Manually raise FloatingPointError -> raise FloatingPointError("Simulated floating point error") -E FloatingPointError: Simulated floating point error - -tests/test_math_utils.py:82: FloatingPointError -_________________________ test_floating_point_overflow _________________________ - - def test_floating_point_overflow(): - # Exponential overflow triggers OverflowError -> math.exp(1000) -E OverflowError: math range error - -tests/test_math_utils.py:86: OverflowError -_______________________________ test_value_error _______________________________ - - def test_value_error(): - # ValueError on invalid integer conversion -> int("invalid") -E ValueError: invalid literal for int() with base 10: 'invalid' - -tests/test_math_utils.py:90: ValueError -__________________________ test_wrong_argument_error ___________________________ - - def test_wrong_argument_error(): - # TypeError when passing wrong argument type to sum -> sum(5) -E TypeError: 'int' object is not iterable - -tests/test_math_utils.py:94: TypeError -___________________________ test_unhandled_exception ___________________________ - - def test_unhandled_exception(): - # Raises generic unhandled Exception -> raise Exception("Generic unhandled exception") -E Exception: Generic unhandled exception - -tests/test_math_utils.py:98: Exception -______________________________ test_custom_error _______________________________ - - def test_custom_error(): - # Raises user-defined CustomError exception -> raise CustomError("Custom error simulation") -E test_math_utils.CustomError: Custom error simulation - -tests/test_math_utils.py:102: CustomError -__________________________ test_stop_iteration_direct __________________________ - - def test_stop_iteration_direct(): - # Directly raise StopIteration exception -> raise StopIteration() -E StopIteration - -tests/test_math_utils.py:106: StopIteration - -The above exception was the direct cause of the following exception: - -cls = -func = . at 0x7f42d99dd9d0> -when = 'call' -reraise = (, ) - - @classmethod - def from_call( - cls, - func: Callable[[], TResult], - when: Literal["collect", "setup", "call", "teardown"], - reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, - ) -> CallInfo[TResult]: - """Call func, wrapping the result in a CallInfo. - - :param func: - The function to call. Called without arguments. - :type func: Callable[[], _pytest.runner.TResult] - :param when: - The phase in which the function is called. - :param reraise: - Exception or exceptions that shall propagate if raised by the - function, instead of being wrapped in the CallInfo. - """ - excinfo = None - start = timing.time() - precise_start = timing.perf_counter() - try: -> result: TResult | None = func() - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in - lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ - return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec - return self._inner_hookexec(hook_name, methods, kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call - yield from thread_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call - yield from unraisable_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call - yield from self._runtest_for(item, "call") -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for - yield -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = _capture_fixture=None> -item = - - @hookimpl(wrapper=True) - def pytest_runtest_call(self, item: Item) -> Generator[None]: - with self.item_capture("call", item): -> return (yield) -E RuntimeError: generator raised StopIteration - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError -__________________________ test_generator_exit_direct __________________________ - - def test_generator_exit_direct(): - # Directly raise GeneratorExit exception -> raise GeneratorExit() -E GeneratorExit - -tests/test_math_utils.py:110: GeneratorExit -_____________________________ test_malformed_code ______________________________ - - def test_malformed_code(): - # SyntaxError when executing malformed Python code -> exec("def bad(:\n pass") -E File "", line 1 -E def bad(: -E ^ -E SyntaxError: invalid syntax - -tests/test_math_utils.py:114: SyntaxError -________________________________ test_sys_exit _________________________________ - - def test_sys_exit(): - # Simulate SystemExit via sys.exit -> sys.exit(1) -E SystemExit: 1 - -tests/test_math_utils.py:118: SystemExit -_____________________________ test_broken_function _____________________________ - - def test_broken_function(): - # Simulate broken function raising TypeError - def broken_func(*args, **kwargs): - raise TypeError("Broken function") -> broken_func() - -tests/test_math_utils.py:124: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = (), kwargs = {} - - def broken_func(*args, **kwargs): -> raise TypeError("Broken function") -E TypeError: Broken function - -tests/test_math_utils.py:123: TypeError -______________________________ test_import_error _______________________________ - - def test_import_error(): -> raise ImportError("Simulated ImportError") -E ImportError: Simulated ImportError - -tests/test_math_utils.py:127: ImportError -_________________________ test_module_not_found_error __________________________ - - def test_module_not_found_error(): - # Raises ModuleNotFoundError (subclass of ImportError) for missing module -> importlib.import_module("non_existent_module_xyz") - -tests/test_math_utils.py:131: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'non_existent_module_xyz' -import_ = - -> ??? -E ModuleNotFoundError: No module named 'non_existent_module_xyz' - -:973: ModuleNotFoundError -__________________________ test_uppercase_type_error ___________________________ - - def test_uppercase_type_error(): - # TypeError when input is None (invalid input) -> uppercase(None) - -tests/test_string_utils.py:14: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -s = None - - def uppercase(s): - if s is None: -> raise TypeError("Input cannot be None") -E TypeError: Input cannot be None - -functions/string_utils.py:3: TypeError -__________________________ test_unicode_decode_error ___________________________ - - def test_unicode_decode_error(): - # UnicodeDecodeError when decoding invalid byte sequence -> b'\xff'.decode('utf-8') -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte - -tests/test_string_utils.py:26: UnicodeDecodeError -_____________________ test_unicode_decode_surrogateescape ______________________ - - def test_unicode_decode_surrogateescape(): - # UnicodeDecodeError with strict error handler on invalid byte -> b"\x80".decode("utf-8", errors="strict") -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte - -tests/test_string_utils.py:30: UnicodeDecodeError -=============================== warnings summary =============================== -tests/test_string_utils.py::test_warning_emit - /workspace/tligui_y/slic/tests/test_string_utils.py:22: UserWarning: Test warning - warnings.warn("Test warning", UserWarning) - --- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------------------- JSON report ---------------------------------- -report saved to: ci-reports/markdown/pytest-report.json - ----------- coverage: platform linux, python 3.8.20-final-0 ----------- -Coverage HTML written to dir ci-reports/coverage/ -Coverage XML written to file ci-reports/coverage/coverage.xml - -=========================== short test summary info ============================ -FAILED tests/test_io_utils.py::test_cause_io_error - OSError: Forced IO Error for testing -FAILED tests/test_io_utils.py::test_file_not_found - FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' -FAILED tests/test_io_utils.py::test_permission_error - PermissionError: Permission denied -FAILED tests/test_io_utils.py::test_mock_open_error - OSError: Mocked IOError -FAILED tests/test_io_utils.py::test_file_handle_closed_error - ValueError: I/O operation on closed file -FAILED tests/test_io_utils.py::test_os_error - OSError: Simulated OSError -FAILED tests/test_io_utils.py::test_file_not_found_error - FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' -FAILED tests/test_math_utils.py::test_broken - NameError: name 'want_the_test_to_fail' is not defined -FAILED tests/test_math_utils.py::test_call_missing_function - AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' -FAILED tests/test_math_utils.py::test_addition_fail - assert 4 == 5 - + where 4 = addition(2, 2) -FAILED tests/test_math_utils.py::test_division_zero - ZeroDivisionError: division by zero -FAILED tests/test_math_utils.py::test_runtime_error - RuntimeError: Forced runtime error -FAILED tests/test_math_utils.py::test_memory_error - MemoryError: Simulated memory error -FAILED tests/test_math_utils.py::test_timeout_error - TimeoutError: Simulated timeout error -FAILED tests/test_math_utils.py::test_recursion_error - RecursionError: maximum recursion depth exceeded -FAILED tests/test_math_utils.py::test_floating_point_error - FloatingPointError: Simulated floating point error -FAILED tests/test_math_utils.py::test_floating_point_overflow - OverflowError: math range error -FAILED tests/test_math_utils.py::test_value_error - ValueError: invalid literal for int() with base 10: 'invalid' -FAILED tests/test_math_utils.py::test_wrong_argument_error - TypeError: 'int' object is not iterable -FAILED tests/test_math_utils.py::test_unhandled_exception - Exception: Generic unhandled exception -FAILED tests/test_math_utils.py::test_custom_error - test_math_utils.CustomError: Custom error simulation -FAILED tests/test_math_utils.py::test_stop_iteration_direct - RuntimeError: generator raised StopIteration -FAILED tests/test_math_utils.py::test_generator_exit_direct - GeneratorExit -FAILED tests/test_math_utils.py::test_malformed_code - File "", line 1 - def bad(: - ^ -SyntaxError: invalid syntax -FAILED tests/test_math_utils.py::test_sys_exit - SystemExit: 1 -FAILED tests/test_math_utils.py::test_broken_function - TypeError: Broken function -FAILED tests/test_math_utils.py::test_import_error - ImportError: Simulated ImportError -FAILED tests/test_math_utils.py::test_module_not_found_error - ModuleNotFoundError: No module named 'non_existent_module_xyz' -FAILED tests/test_string_utils.py::test_uppercase_type_error - TypeError: Input cannot be None -FAILED tests/test_string_utils.py::test_unicode_decode_error - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte -FAILED tests/test_string_utils.py::test_unicode_decode_surrogateescape - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte -ERROR tests/test_broken_fct.py -ERROR tests/test_collector_error.py -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -/workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt -(to show a full traceback on KeyboardInterrupt use --full-trace) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.67s ========= -``` -
- ---- - # ๐Ÿงช Test Report -*Generated on 2025-07-16 00:41:45* +*Generated on 2025-07-16 00:45:08* ## ๐Ÿงพ General Info -- **duration**: `0.674424409866333` -- **root**: `/workspace/tligui_y/slic` -- **environment**: - -## ๐Ÿ“‹ Summary -- **Passed**: `16` -- **Failed**: `31` -- **Xfailed**: `2` -- **Total**: `49` -- **Collected**: `49` - -## ๐Ÿ”Ž Tests -
-
-โœ… Passed (16) - -
-
-๐Ÿ“ test_io_utils.py - -
-
-๐Ÿ”ง Function: `test_read_file` - -
-
-โœ… #1 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.002929492969997227` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00044672901276499033` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00023839296773076057` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_write_file` - -
-
-โœ… #2 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0004437509924173355` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002665590727701783` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001347630750387907` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_write_file_readonly` - -
-
-โœ… #9 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0005963610019534826` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0008861339883878827` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013706297613680363` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ“ test_math_utils.py - -
-
-๐Ÿ”ง Function: `test_addition_pass` - -
-
-โœ… #13 parameters: [2-2-4] - -- **Parameters:** `2-2-4` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002776749897748232` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001416270388290286` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001385319046676159` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #14 parameters: [1-5-6] - -- **Parameters:** `1-5-6` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00024887907784432173` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012758502271026373` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013808696530759335` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #15 parameters: [3-4-7] - -- **Parameters:** `3-4-7` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00024539302103221416` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001297350972890854` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013301195576786995` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #16 parameters: [3-5-8] - -- **Parameters:** `3-5-8` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00023563706781715155` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012562808115035295` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013065896928310394` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #17 parameters: [3-6-9] - -- **Parameters:** `3-6-9` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002491059713065624` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012672599405050278` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001317609567195177` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_addition_pass_id` - -
-
-โœ… #18 parameters: [a=2,b=2,expected=4] - -- **Parameters:** `a=2,b=2,expected=4` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002305570524185896` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001263660378754139` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013120099902153015` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #19 parameters: [a=1,b=5,expected=6] - -- **Parameters:** `a=1,b=5,expected=6` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00023788795806467533` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012124702334403992` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012602400965988636` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- -
-
-โœ… #20 parameters: [a=3,b=4,expected=7] - -- **Parameters:** `a=3,b=4,expected=7` - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002488209865987301` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001257730182260275` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013273709919303656` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ“ test_string_utils.py - -
-
-๐Ÿ”ง Function: `test_uppercase_normal` - -
-
-โœ… #41 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012149102985858917` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001510379370301962` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`9.946199133992195e-05` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_reverse_string` - -
-
-โœ… #43 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011413800530135632` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014935294166207314` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00010650802869349718` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_warning_emit` - -
-
-โœ… #44 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001030659768730402` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013619405217468739` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`9.600806515663862e-05` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_import_warning` - -
-
-โœ… #47 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011829996947199106` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001316770212724805` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00010366796050220728` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_keyboard_interrupt_direct` - -
-
-โœ… #49 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011635501869022846` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
-โŒ Failed (31) - -
-
-๐Ÿ“ test_io_utils.py - -
-
-๐Ÿ”ง Function: `test_cause_io_error` - -
-
-โŒ #3 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011613196693360806` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00015055900439620018` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/functions/io_utils.py``, `lineno: `10``, `message: `OSError: Forced IO Error for testing`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `25``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `10``, `message: `OSError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_cause_io_error(): - # Raises manual IOError to simulate IO failure -> cause_io_error() - -tests/test_io_utils.py:25: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - - def cause_io_error(): -> raise IOError("Forced IO Error for testing") -E OSError: Forced IO Error for testing - -functions/io_utils.py:10: OSError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013448507525026798` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_file_not_found` - -
-
-โŒ #4 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011698598973453045` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016503501683473587` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/functions/io_utils.py``, `lineno: `2``, `message: `FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `29``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `2``, `message: `FileNotFoundError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_file_not_found(): - # Reading non-existing file raises FileNotFoundError -> read_file("nonexistent.file") - -tests/test_io_utils.py:29: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'nonexistent.file' - - def read_file(path): -> with open(path, "r", encoding="utf-8") as f: -E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file' - -functions/io_utils.py:2: FileNotFoundError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013514398597180843` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_permission_error` - -
-
-โŒ #5 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001964339753612876` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016855192370712757` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `34``, `message: `PermissionError: Permission denied`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `36``, `message: `None``, `path: `functions/io_utils.py``, `lineno: `2``, `message: `in read_file``, `path: `tests/test_io_utils.py``, `lineno: `34``, `message: `PermissionError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72882b0> - - def test_permission_error(monkeypatch): - # Patch open to raise PermissionError simulating access denial - def raise_perm_error(*args, **kwargs): - raise PermissionError("Permission denied") - monkeypatch.setattr("builtins.open", raise_perm_error) -> read_file("anyfile.txt") - -tests/test_io_utils.py:36: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -functions/io_utils.py:2: in read_file - with open(path, "r", encoding="utf-8") as f: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'} - - def raise_perm_error(*args, **kwargs): -> raise PermissionError("Permission denied") -E PermissionError: Permission denied - -tests/test_io_utils.py:34: PermissionError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001609779428690672` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_mock_open_error` - -
-
-โŒ #6 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00017999496776610613` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.003146373084746301` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1140``, `message: `OSError: Mocked IOError`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `43``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1081``, `message: `in __call__``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1085``, `message: `in _mock_call``, `path: `.pixi/envs/default/lib/python3.8/unittest/mock.py``, `lineno: `1140``, `message: `OSError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72ba6d0> - - def test_mock_open_error(monkeypatch): - # Mock open() to raise IOError simulating read error - mocked_open = mock.mock_open() - mocked_open.side_effect = IOError("Mocked IOError") - monkeypatch.setattr("builtins.open", mocked_open) -> with open("file.txt", "r") as f: - -tests/test_io_utils.py:43: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__ - return self._mock_call(*args, **kwargs) -.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call - return self._execute_mock_call(*args, **kwargs) -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = -args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') - - def _execute_mock_call(self, /, *args, **kwargs): - # separate from _increment_mock_call so that awaited functions are - # executed separately from their call, also AsyncMock overrides this method - - effect = self.side_effect - if effect is not None: - if _is_exception(effect): -> raise effect -E OSError: Mocked IOError - -.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0002530229976400733` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_file_handle_closed_error` - -
-
-โŒ #7 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001484369859099388` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00017056800425052643` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `50``, `message: `ValueError: I/O operation on closed file`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `50``, `message: `ValueError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_file_handle_closed_error(): - # Accessing closed file raises ValueError - f = io.StringIO("content") - f.close() -> f.read() -E ValueError: I/O operation on closed file - -tests/test_io_utils.py:50: ValueError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016018201131373644` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_os_error` - -
-
-โŒ #8 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00022099108900874853` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00017409003339707851` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `55``, `message: `OSError: Simulated OSError`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `57``, `message: `None``, `path: `tests/test_io_utils.py``, `lineno: `55``, `message: `OSError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d9368e20> - - def test_os_error(monkeypatch): - # Patch os.remove to raise OSError simulating filesystem error - def raise_os_error(path): - raise OSError("Simulated OSError") - monkeypatch.setattr("os.remove", raise_os_error) -> os.remove("file.txt") - -tests/test_io_utils.py:57: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -path = 'file.txt' - - def raise_os_error(path): -> raise OSError("Simulated OSError") -E OSError: Simulated OSError - -tests/test_io_utils.py:55: OSError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016133999451994896` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_file_not_found_error` - -
-
-โŒ #10 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011336000170558691` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001638949615880847` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_io_utils.py``, `lineno: `69``, `message: `FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_io_utils.py``, `lineno: `69``, `message: `FileNotFoundError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_file_not_found_error(): - # Raises FileNotFoundError when opening a non-existent file -> open("no_such_file.txt", "r") -E FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt' - -tests/test_io_utils.py:69: FileNotFoundError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001348499208688736` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ“ test_math_utils.py - -
-
-๐Ÿ”ง Function: `test_broken` - -
-
-โŒ #11 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013047794345766306` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014975201338529587` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `16``, `message: `NameError: name 'want_the_test_to_fail' is not defined`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `16``, `message: `NameError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_broken(): - # simulating a broken or faulty test implementation that will cause the test to error -> want_the_test_to_fail -E NameError: name 'want_the_test_to_fail' is not defined - -tests/test_math_utils.py:16: NameError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013582699466496706` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_call_missing_function` - -
-
-โŒ #12 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011444406118243933` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014833698514848948` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `20``, `message: `AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `20``, `message: `AttributeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_call_missing_function(): - # Accessing a missing function attribute raises AttributeError -> getattr(math_utils, "non_existent_function")() -E AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function' - -tests/test_math_utils.py:20: AttributeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013490801211446524` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_addition_fail` - -
-
-โŒ #21 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001102800015360117` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0003902410389855504` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `51``, `message: `assert 4 == 5 - + where 4 = addition(2, 2)`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `51``, `message: `AssertionError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_addition_fail(): - # Assertion failure: expected incorrect result -> assert addition(2, 2) == 5 -E assert 4 == 5 -E + where 4 = addition(2, 2) - -tests/test_math_utils.py:51: AssertionError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013381498865783215` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_division_zero` - -
-
-โŒ #22 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011568400077521801` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014994200319051743` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError: division by zero`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `55``, `message: `None``, `path: `functions/math_utils.py``, `lineno: `5``, `message: `ZeroDivisionError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_division_zero(): - # Will raise ZeroDivisionError if not handled in division -> division(1, 0) - -tests/test_math_utils.py:55: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -a = 1, b = 0 - - def division(a, b): -> return a / b -E ZeroDivisionError: division by zero - -functions/math_utils.py:5: ZeroDivisionError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001353059196844697` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_runtime_error` - -
-
-โŒ #24 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001156800426542759` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014293892309069633` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `64``, `message: `RuntimeError: Forced runtime error`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `64``, `message: `RuntimeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_runtime_error(): - # Test raises an uncaught RuntimeError -> raise RuntimeError("Forced runtime error") -E RuntimeError: Forced runtime error - -tests/test_math_utils.py:64: RuntimeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001330990344285965` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_memory_error` - -
-
-โŒ #25 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011352298315614462` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001425930531695485` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `68``, `message: `MemoryError: Simulated memory error`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `68``, `message: `MemoryError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_memory_error(): - # Manually raise MemoryError to simulate out-of-memory condition -> raise MemoryError("Simulated memory error") -E MemoryError: Simulated memory error - -tests/test_math_utils.py:68: MemoryError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013273500371724367` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_timeout_error` - -
-
-โŒ #26 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011568807531148195` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014533998910337687` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `72``, `message: `TimeoutError: Simulated timeout error`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `72``, `message: `TimeoutError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_timeout_error(): - # Manually raise TimeoutError simulating timeout conditions -> raise TimeoutError("Simulated timeout error") -E TimeoutError: Simulated timeout error - -tests/test_math_utils.py:72: TimeoutError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013132602907717228` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_recursion_error` - -
-
-โŒ #27 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011846900451928377` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0006714920746162534` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `77``, `message: `RecursionError: maximum recursion depth exceeded`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `78``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `77``, `message: `in recursive``, `path: `tests/test_math_utils.py``, `lineno: `77``, `message: `in recursive`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_recursion_error(): - # Infinite recursion triggers RecursionError - def recursive(): - return recursive() -> recursive() - -tests/test_math_utils.py:78: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -tests/test_math_utils.py:77: in recursive - return recursive() -tests/test_math_utils.py:77: in recursive - return recursive() -E RecursionError: maximum recursion depth exceeded -!!! Recursion detected (same locals & position)` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013326096814125776` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_floating_point_error` - -
-
-โŒ #28 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011379504576325417` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014225393533706665` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `82``, `message: `FloatingPointError: Simulated floating point error`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `82``, `message: `FloatingPointError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_floating_point_error(): - # Manually raise FloatingPointError -> raise FloatingPointError("Simulated floating point error") -E FloatingPointError: Simulated floating point error - -tests/test_math_utils.py:82: FloatingPointError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014493695925921202` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_floating_point_overflow` - -
-
-โŒ #29 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011554500088095665` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014796596951782703` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `86``, `message: `OverflowError: math range error`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `86``, `message: `OverflowError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_floating_point_overflow(): - # Exponential overflow triggers OverflowError -> math.exp(1000) -E OverflowError: math range error - -tests/test_math_utils.py:86: OverflowError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001319770235568285` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_value_error` - -
-
-โŒ #30 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001193369971588254` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00015111302491277456` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `90``, `message: `ValueError: invalid literal for int() with base 10: 'invalid'`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `90``, `message: `ValueError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_value_error(): - # ValueError on invalid integer conversion -> int("invalid") -E ValueError: invalid literal for int() with base 10: 'invalid' - -tests/test_math_utils.py:90: ValueError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001295000547543168` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_wrong_argument_error` - -
-
-โŒ #31 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011738308239728212` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001479260390624404` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `94``, `message: `TypeError: 'int' object is not iterable`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `94``, `message: `TypeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_wrong_argument_error(): - # TypeError when passing wrong argument type to sum -> sum(5) -E TypeError: 'int' object is not iterable - -tests/test_math_utils.py:94: TypeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012996990699321032` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_unhandled_exception` - -
-
-โŒ #32 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011276605073362589` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001432819990441203` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `98``, `message: `Exception: Generic unhandled exception`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `98``, `message: `Exception`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_unhandled_exception(): - # Raises generic unhandled Exception -> raise Exception("Generic unhandled exception") -E Exception: Generic unhandled exception - -tests/test_math_utils.py:98: Exception` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001334690023213625` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_custom_error` - -
-
-โŒ #33 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011279003228992224` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014335603918880224` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `102``, `message: `test_math_utils.CustomError: Custom error simulation`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `102``, `message: `CustomError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_custom_error(): - # Raises user-defined CustomError exception -> raise CustomError("Custom error simulation") -E test_math_utils.CustomError: Custom error simulation - -tests/test_math_utils.py:102: CustomError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013147108256816864` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_stop_iteration_direct` - -
-
-โŒ #34 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011866097338497639` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014405010733753443` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py``, `lineno: `880``, `message: `RuntimeError: generator raised StopIteration`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py``, `lineno: `341``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py``, `lineno: `242``, `message: `in ``, `path: `.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py``, `lineno: `513``, `message: `in __call__``, `path: `.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py``, `lineno: `120``, `message: `in _hookexec``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py``, `lineno: `92``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py``, `lineno: `68``, `message: `in thread_exception_runtest_hook``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py``, `lineno: `95``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py``, `lineno: `70``, `message: `in unraisable_exception_runtest_hook``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py``, `lineno: `846``, `message: `in pytest_runtest_call``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py``, `lineno: `829``, `message: `in _runtest_for``, `path: `.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py``, `lineno: `880``, `message: `RuntimeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_stop_iteration_direct(): - # Directly raise StopIteration exception -> raise StopIteration() -E StopIteration - -tests/test_math_utils.py:106: StopIteration - -The above exception was the direct cause of the following exception: - -cls = -func = . at 0x7f42d99dd9d0> -when = 'call' -reraise = (, ) - - @classmethod - def from_call( - cls, - func: Callable[[], TResult], - when: Literal["collect", "setup", "call", "teardown"], - reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, - ) -> CallInfo[TResult]: - """Call func, wrapping the result in a CallInfo. - - :param func: - The function to call. Called without arguments. - :type func: Callable[[], _pytest.runner.TResult] - :param when: - The phase in which the function is called. - :param reraise: - Exception or exceptions that shall propagate if raised by the - function, instead of being wrapped in the CallInfo. - """ - excinfo = None - start = timing.time() - precise_start = timing.perf_counter() - try: -> result: TResult | None = func() - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in - lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__ - return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec - return self._inner_hookexec(hook_name, methods, kwargs, firstresult) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call - yield from thread_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call - yield from unraisable_exception_runtest_hook() -.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook - yield -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call - yield from self._runtest_for(item, "call") -.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for - yield -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = _capture_fixture=None> -item = - - @hookimpl(wrapper=True) - def pytest_runtest_call(self, item: Item) -> Generator[None]: - with self.item_capture("call", item): -> return (yield) -E RuntimeError: generator raised StopIteration - -.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00019475503358989954` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_generator_exit_direct` - -
-
-โŒ #35 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012717698700726032` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00015497696585953236` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `110``, `message: `GeneratorExit`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `110``, `message: `GeneratorExit`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_generator_exit_direct(): - # Directly raise GeneratorExit exception -> raise GeneratorExit() -E GeneratorExit - -tests/test_math_utils.py:110: GeneratorExit` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016017397865653038` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_malformed_code` - -
-
-โŒ #36 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013483292423188686` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00016208307351917028` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `114``, `message: ` File "", line 1 - def bad(: - ^ -SyntaxError: invalid syntax`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `114``, `message: `SyntaxError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_malformed_code(): - # SyntaxError when executing malformed Python code -> exec("def bad(:\n pass") -E File "", line 1 -E def bad(: -E ^ -E SyntaxError: invalid syntax - -tests/test_math_utils.py:114: SyntaxError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013376690912991762` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_sys_exit` - -
-
-โŒ #37 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011452601756900549` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014442496467381716` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `118``, `message: `SystemExit: 1`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `118``, `message: `SystemExit`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_sys_exit(): - # Simulate SystemExit via sys.exit -> sys.exit(1) -E SystemExit: 1 - -tests/test_math_utils.py:118: SystemExit` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001323659671470523` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_broken_function` - -
-
-โŒ #38 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011350598651915789` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014856294728815556` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `123``, `message: `TypeError: Broken function`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `124``, `message: `None``, `path: `tests/test_math_utils.py``, `lineno: `123``, `message: `TypeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_broken_function(): - # Simulate broken function raising TypeError - def broken_func(*args, **kwargs): - raise TypeError("Broken function") -> broken_func() - -tests/test_math_utils.py:124: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -args = (), kwargs = {} - - def broken_func(*args, **kwargs): -> raise TypeError("Broken function") -E TypeError: Broken function - -tests/test_math_utils.py:123: TypeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001348369987681508` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_import_error` - -
-
-โŒ #39 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001192739000543952` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014678796287626028` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError: Simulated ImportError`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `127``, `message: `ImportError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_import_error(): -> raise ImportError("Simulated ImportError") -E ImportError: Simulated ImportError - -tests/test_math_utils.py:127: ImportError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001329940278083086` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_module_not_found_error` - -
-
-โŒ #40 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001158619998022914` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00043355091474950314` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: ```, `lineno: `973``, `message: `ModuleNotFoundError: No module named 'non_existent_module_xyz'`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `131``, `message: `None``, `path: `.pixi/envs/default/lib/python3.8/importlib/__init__.py``, `lineno: `127``, `message: `in import_module``, `path: ```, `lineno: `1014``, `message: `in _gcd_import``, `path: ```, `lineno: `991``, `message: `in _find_and_load``, `path: ```, `lineno: `973``, `message: `ModuleNotFoundError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_module_not_found_error(): - # Raises ModuleNotFoundError (subclass of ImportError) for missing module -> importlib.import_module("non_existent_module_xyz") - -tests/test_math_utils.py:131: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -name = 'non_existent_module_xyz' -import_ = - -> ??? -E ModuleNotFoundError: No module named 'non_existent_module_xyz' - -:973: ModuleNotFoundError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001386849908158183` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ“ test_string_utils.py - -
-
-๐Ÿ”ง Function: `test_uppercase_type_error` - -
-
-โŒ #42 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00010247807949781418` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013752898667007685` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/functions/string_utils.py``, `lineno: `3``, `message: `TypeError: Input cannot be None`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `14``, `message: `None``, `path: `functions/string_utils.py``, `lineno: `3``, `message: `TypeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_uppercase_type_error(): - # TypeError when input is None (invalid input) -> uppercase(None) - -tests/test_string_utils.py:14: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -s = None - - def uppercase(s): - if s is None: -> raise TypeError("Input cannot be None") -E TypeError: Input cannot be None - -functions/string_utils.py:3: TypeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.000137980910949409` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_unicode_decode_error` - -
-
-โŒ #45 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00010048400145024061` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00014056498184800148` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `26``, `message: `UnicodeDecodeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_unicode_decode_error(): - # UnicodeDecodeError when decoding invalid byte sequence -> b'\xff'.decode('utf-8') -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte - -tests/test_string_utils.py:26: UnicodeDecodeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013082206714898348` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ”ง Function: `test_unicode_decode_surrogateescape` - -
-
-โŒ #46 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00011530297342687845` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00015213992446660995` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`failed` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `30``, `message: `UnicodeDecodeError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`def test_unicode_decode_surrogateescape(): - # UnicodeDecodeError with strict error handler on invalid byte -> b"\x80".decode("utf-8", errors="strict") -E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte - -tests/test_string_utils.py:30: UnicodeDecodeError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013316795229911804` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
-โŒ Xfailed (2) - -
-
-๐Ÿ“ test_math_utils.py - -
-
-๐Ÿ”ง Function: `test_multiply_xfail` - -
-
-โŒ #23 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00012603902723640203` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00025724596343934536` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`skipped` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_math_utils.py``, `lineno: `60``, `message: `assert 4 == 5 - + where 4 = multiply(2, 2)`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_math_utils.py``, `lineno: `60``, `message: `AssertionError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`@pytest.mark.xfail(reason="Expected failure") - def test_multiply_xfail(): - # Expected fail test (xfail): incorrect expected multiply result -> assert multiply(2, 2) == 5 -E assert 4 == 5 -E + where 4 = multiply(2, 2) - -tests/test_math_utils.py:60: AssertionError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013229309115558863` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- -
-
-๐Ÿ“ test_string_utils.py - -
-
-๐Ÿ”ง Function: `test_xfail_uppercase_digits` - -
-
-โŒ #48 - - -### ๐Ÿ”ง Setup Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0001244790619239211` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -### ๐Ÿ”ง Call Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.0005735300946980715` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`skipped` -``` - -
-
- -
-
-๐Ÿ“Œ Crash - -``` -`path: `/workspace/tligui_y/slic/tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError: assert 'ABC123' == 'ABC1234' - - - ABC1234 - ? - - + ABC123`` -``` - -
-
- -
-
-๐Ÿ“Œ Traceback - -``` -`path: `tests/test_string_utils.py``, `lineno: `39``, `message: `AssertionError`` -``` - -
-
- -
-
-๐Ÿ“Œ Longrepr - -``` -`@pytest.mark.xfail(reason="Expected failure: uppercase does not handle digits") - def test_xfail_uppercase_digits(): - # Expected fail test because uppercase won't change digits -> assert uppercase("abc123") == "ABC1234" -E AssertionError: assert 'ABC123' == 'ABC1234' -E -E - ABC1234 -E ? - -E + ABC123 - -tests/test_string_utils.py:39: AssertionError` -``` - -
-
- - -### ๐Ÿ”ง Teardown Phase - -
-
-๐Ÿ“Œ Duration - -``` -`0.00013303395826369524` -``` - -
-
- -
-
-๐Ÿ“Œ Outcome - -``` -`passed` -``` - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -## ๐Ÿ“š Collected files -
-
-โœ… (1 tests) - -
-
-โœ… - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `.``, `type: `Dir`` - -``` - -
-
- - -
-
- -
-
-โœ… ci-reports (12 tests) - -
-
-โœ… ci-reports - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure``, `type: `Dir``, `nodeid: `ci-reports/coverage``, `type: `Dir``, `nodeid: `ci-reports/markdown``, `type: `Dir`` - -``` - -
-
- -
-
-โœ… ci-reports/allure - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure/data``, `type: `Dir``, `nodeid: `ci-reports/allure/export``, `type: `Dir``, `nodeid: `ci-reports/allure/history``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin``, `type: `Dir``, `nodeid: `ci-reports/allure/widgets``, `type: `Dir`` - -``` - -
-
- -
-
-โœ… ci-reports/allure/data - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/export - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/history - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/plugin - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports/allure/plugin/behaviors``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/packages``, `type: `Dir``, `nodeid: `ci-reports/allure/plugin/screen-diff``, `type: `Dir`` - -``` - -
-
- -
-
-โœ… ci-reports/allure/plugin/behaviors - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/plugin/packages - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/plugin/screen-diff - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/allure/widgets - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/coverage - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- -
-
-โœ… ci-reports/markdown - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- - -
-
- -
-
-โœ… functions (1 tests) - -
-
-โœ… functions - -- **Outcome:** `passed` -- **Details:** -``` -result: - - -``` - -
-
- - -
-
- -
-
-โŒ tests (6 tests) - -
-
-โœ… tests - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `tests/test_broken_fct.py``, `type: `Module``, `nodeid: `tests/test_collector_error.py``, `type: `Module``, `nodeid: `tests/test_io_utils.py``, `type: `Module``, `nodeid: `tests/test_math_utils.py``, `type: `Module``, `nodeid: `tests/test_string_utils.py``, `type: `Module`` - -``` - -
-
- -
-
-โŒ tests/test_broken_fct.py - -- **Outcome:** `failed` -- **Details:** -``` -result: - - -longrepr: -`.pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule - mod = import_path( -.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path - importlib.import_module(module_name) -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -:1014: in _gcd_import - ??? -:991: in _find_and_load - ??? -:975: in _find_and_load_unlocked - ??? -:671: in _load_unlocked - ??? -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module - source_stat, co = _rewrite_test(fn, self.config) -.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test - tree = ast.parse(source, filename=strfn) -.pixi/envs/default/lib/python3.8/ast.py:47: in parse - return compile(source, filename, mode, flags, -E File "/workspace/tligui_y/slic/tests/test_broken_fct.py", line 8 -E def test_valid_2(): -E ^ -E SyntaxError: invalid syntax` - -``` - -
-
- -
-
-โŒ tests/test_collector_error.py - -- **Outcome:** `failed` -- **Details:** -``` -result: - - -longrepr: -`ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module - return _bootstrap._gcd_import(name[level:], package, level) -tests/test_collector_error.py:1: in - from no_existing_module.math_utils import * -E ModuleNotFoundError: No module named 'no_existing_module'` - -``` - -
-
- -
-
-โœ… tests/test_io_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `tests/test_io_utils.py::test_read_file``, `type: `Function``, `lineno: `9``, `nodeid: `tests/test_io_utils.py::test_write_file``, `type: `Function``, `lineno: `16``, `nodeid: `tests/test_io_utils.py::test_cause_io_error``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_io_utils.py::test_file_not_found``, `type: `Function``, `lineno: `26``, `nodeid: `tests/test_io_utils.py::test_permission_error``, `type: `Function``, `lineno: `30``, `nodeid: `tests/test_io_utils.py::test_mock_open_error``, `type: `Function``, `lineno: `37``, `nodeid: `tests/test_io_utils.py::test_file_handle_closed_error``, `type: `Function``, `lineno: `45``, `nodeid: `tests/test_io_utils.py::test_os_error``, `type: `Function``, `lineno: `51``, `nodeid: `tests/test_io_utils.py::test_write_file_readonly``, `type: `Function``, `lineno: `58``, `nodeid: `tests/test_io_utils.py::test_file_not_found_error``, `type: `Function``, `lineno: `66`` - -``` - -
-
- -
-
-โœ… tests/test_math_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `tests/test_math_utils.py::test_broken``, `type: `Function``, `lineno: `13``, `nodeid: `tests/test_math_utils.py::test_call_missing_function``, `type: `Function``, `lineno: `17``, `nodeid: `tests/test_math_utils.py::test_addition_pass[2-2-4]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[1-5-6]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-4-7]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-5-8]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass[3-6-9]``, `type: `Function``, `lineno: `22``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]``, `type: `Function``, `lineno: `36``, `nodeid: `tests/test_math_utils.py::test_addition_fail``, `type: `Function``, `lineno: `48``, `nodeid: `tests/test_math_utils.py::test_division_zero``, `type: `Function``, `lineno: `52``, `nodeid: `tests/test_math_utils.py::test_multiply_xfail``, `type: `Function``, `lineno: `56``, `nodeid: `tests/test_math_utils.py::test_runtime_error``, `type: `Function``, `lineno: `61``, `nodeid: `tests/test_math_utils.py::test_memory_error``, `type: `Function``, `lineno: `65``, `nodeid: `tests/test_math_utils.py::test_timeout_error``, `type: `Function``, `lineno: `69``, `nodeid: `tests/test_math_utils.py::test_recursion_error``, `type: `Function``, `lineno: `73``, `nodeid: `tests/test_math_utils.py::test_floating_point_error``, `type: `Function``, `lineno: `79``, `nodeid: `tests/test_math_utils.py::test_floating_point_overflow``, `type: `Function``, `lineno: `83``, `nodeid: `tests/test_math_utils.py::test_value_error``, `type: `Function``, `lineno: `87``, `nodeid: `tests/test_math_utils.py::test_wrong_argument_error``, `type: `Function``, `lineno: `91``, `nodeid: `tests/test_math_utils.py::test_unhandled_exception``, `type: `Function``, `lineno: `95``, `nodeid: `tests/test_math_utils.py::test_custom_error``, `type: `Function``, `lineno: `99``, `nodeid: `tests/test_math_utils.py::test_stop_iteration_direct``, `type: `Function``, `lineno: `103``, `nodeid: `tests/test_math_utils.py::test_generator_exit_direct``, `type: `Function``, `lineno: `107``, `nodeid: `tests/test_math_utils.py::test_malformed_code``, `type: `Function``, `lineno: `111``, `nodeid: `tests/test_math_utils.py::test_sys_exit``, `type: `Function``, `lineno: `115``, `nodeid: `tests/test_math_utils.py::test_broken_function``, `type: `Function``, `lineno: `119``, `nodeid: `tests/test_math_utils.py::test_import_error``, `type: `Function``, `lineno: `125``, `nodeid: `tests/test_math_utils.py::test_module_not_found_error``, `type: `Function``, `lineno: `128`` - -``` - -
-
- -
-
-โœ… tests/test_string_utils.py - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `tests/test_string_utils.py::test_uppercase_normal``, `type: `Function``, `lineno: `7``, `nodeid: `tests/test_string_utils.py::test_uppercase_type_error``, `type: `Function``, `lineno: `11``, `nodeid: `tests/test_string_utils.py::test_reverse_string``, `type: `Function``, `lineno: `15``, `nodeid: `tests/test_string_utils.py::test_warning_emit``, `type: `Function``, `lineno: `19``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_error``, `type: `Function``, `lineno: `23``, `nodeid: `tests/test_string_utils.py::test_unicode_decode_surrogateescape``, `type: `Function``, `lineno: `27``, `nodeid: `tests/test_string_utils.py::test_import_warning``, `type: `Function``, `lineno: `31``, `nodeid: `tests/test_string_utils.py::test_xfail_uppercase_digits``, `type: `Function``, `lineno: `35``, `nodeid: `tests/test_string_utils.py::test_keyboard_interrupt_direct``, `type: `Function``, `lineno: `40`` - -``` - -
-
- - -
-
- -
-
-โœ… . (1 tests) - -
-
-โœ… . - -- **Outcome:** `passed` -- **Details:** -``` -result: -`nodeid: `ci-reports``, `type: `Dir``, `nodeid: `functions``, `type: `Package``, `nodeid: `tests``, `type: `Dir`` - -``` - -
-
- - -
-
- -## โš ๏ธ Warnings - -
-
-Warning #1 - -``` -message: Test warning -category: UserWarning -when: runtest -filename: /workspace/tligui_y/slic/tests/test_string_utils.py -lineno: 22 -``` - -
-
- diff --git a/ci-reports/markdown/md-report.log b/ci-reports/markdown/md-report.log index 2f9cfcd9..2af2cf67 100644 --- a/ci-reports/markdown/md-report.log +++ b/ci-reports/markdown/md-report.log @@ -1,2 +1,9 @@ -โœ… Banner and log summary added to markdown report. -โœ… Report generated at ci-reports/markdown/TEST-REPORT.md +Traceback (most recent call last): + File "/workspace/tligui_y/slic/json_to_md.py", line 317, in + main() + File "/workspace/tligui_y/slic/json_to_md.py", line 311, in main + json_to_md_nested(args.input, args.output) + File "/workspace/tligui_y/slic/json_to_md.py", line 106, in json_to_md_nested + f.write(f"- **{key}**: {stringify(value)}\n") + ^^^^^^^^^ +NameError: name 'stringify' is not defined diff --git a/ci-reports/markdown/pytest-report.json b/ci-reports/markdown/pytest-report.json index 7f5f7441..98095cab 100644 --- a/ci-reports/markdown/pytest-report.json +++ b/ci-reports/markdown/pytest-report.json @@ -1 +1 @@ -{"created": 1752626505.3849256, "duration": 0.674424409866333, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 128}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.002929492969997227, "outcome": "passed"}, "call": {"duration": 0.00044672901276499033, "outcome": "passed"}, "teardown": {"duration": 0.00023839296773076057, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file", "lineno": 16, "outcome": "passed", "keywords": ["test_write_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0004437509924173355, "outcome": "passed"}, "call": {"duration": 0.0002665590727701783, "outcome": "passed"}, "teardown": {"duration": 0.0001347630750387907, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "lineno": 22, "outcome": "failed", "keywords": ["test_cause_io_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011613196693360806, "outcome": "passed"}, "call": {"duration": 0.00015055900439620018, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 10, "message": "OSError: Forced IO Error for testing"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 25, "message": ""}, {"path": "functions/io_utils.py", "lineno": 10, "message": "OSError"}], "longrepr": "def test_cause_io_error():\n # Raises manual IOError to simulate IO failure\n> cause_io_error()\n\ntests/test_io_utils.py:25: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n def cause_io_error():\n> raise IOError(\"Forced IO Error for testing\")\nE OSError: Forced IO Error for testing\n\nfunctions/io_utils.py:10: OSError"}, "teardown": {"duration": 0.00013448507525026798, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "lineno": 26, "outcome": "failed", "keywords": ["test_file_not_found", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011698598973453045, "outcome": "passed"}, "call": {"duration": 0.00016503501683473587, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 29, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found():\n # Reading non-existing file raises FileNotFoundError\n> read_file(\"nonexistent.file\")\n\ntests/test_io_utils.py:29: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'nonexistent.file'\n\n def read_file(path):\n> with open(path, \"r\", encoding=\"utf-8\") as f:\nE FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'\n\nfunctions/io_utils.py:2: FileNotFoundError"}, "teardown": {"duration": 0.00013514398597180843, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "lineno": 30, "outcome": "failed", "keywords": ["test_permission_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001964339753612876, "outcome": "passed"}, "call": {"duration": 0.00016855192370712757, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 34, "message": "PermissionError: Permission denied"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 36, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "in read_file"}, {"path": "tests/test_io_utils.py", "lineno": 34, "message": "PermissionError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72882b0>\n\n def test_permission_error(monkeypatch):\n # Patch open to raise PermissionError simulating access denial\n def raise_perm_error(*args, **kwargs):\n raise PermissionError(\"Permission denied\")\n monkeypatch.setattr(\"builtins.open\", raise_perm_error)\n> read_file(\"anyfile.txt\")\n\ntests/test_io_utils.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nfunctions/io_utils.py:2: in read_file\n with open(path, \"r\", encoding=\"utf-8\") as f:\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'}\n\n def raise_perm_error(*args, **kwargs):\n> raise PermissionError(\"Permission denied\")\nE PermissionError: Permission denied\n\ntests/test_io_utils.py:34: PermissionError"}, "teardown": {"duration": 0.0001609779428690672, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "lineno": 37, "outcome": "failed", "keywords": ["test_mock_open_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00017999496776610613, "outcome": "passed"}, "call": {"duration": 0.003146373084746301, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError: Mocked IOError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 43, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1081, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1085, "message": "in _mock_call"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72ba6d0>\n\n def test_mock_open_error(monkeypatch):\n # Mock open() to raise IOError simulating read error\n mocked_open = mock.mock_open()\n mocked_open.side_effect = IOError(\"Mocked IOError\")\n monkeypatch.setattr(\"builtins.open\", mocked_open)\n> with open(\"file.txt\", \"r\") as f:\n\ntests/test_io_utils.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__\n return self._mock_call(*args, **kwargs)\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call\n return self._execute_mock_call(*args, **kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError')\n\n def _execute_mock_call(self, /, *args, **kwargs):\n # separate from _increment_mock_call so that awaited functions are\n # executed separately from their call, also AsyncMock overrides this method\n \n effect = self.side_effect\n if effect is not None:\n if _is_exception(effect):\n> raise effect\nE OSError: Mocked IOError\n\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError"}, "teardown": {"duration": 0.0002530229976400733, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "lineno": 45, "outcome": "failed", "keywords": ["test_file_handle_closed_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001484369859099388, "outcome": "passed"}, "call": {"duration": 0.00017056800425052643, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 50, "message": "ValueError: I/O operation on closed file"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 50, "message": "ValueError"}], "longrepr": "def test_file_handle_closed_error():\n # Accessing closed file raises ValueError\n f = io.StringIO(\"content\")\n f.close()\n> f.read()\nE ValueError: I/O operation on closed file\n\ntests/test_io_utils.py:50: ValueError"}, "teardown": {"duration": 0.00016018201131373644, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_os_error", "lineno": 51, "outcome": "failed", "keywords": ["test_os_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00022099108900874853, "outcome": "passed"}, "call": {"duration": 0.00017409003339707851, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 55, "message": "OSError: Simulated OSError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 57, "message": ""}, {"path": "tests/test_io_utils.py", "lineno": 55, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d9368e20>\n\n def test_os_error(monkeypatch):\n # Patch os.remove to raise OSError simulating filesystem error\n def raise_os_error(path):\n raise OSError(\"Simulated OSError\")\n monkeypatch.setattr(\"os.remove\", raise_os_error)\n> os.remove(\"file.txt\")\n\ntests/test_io_utils.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'file.txt'\n\n def raise_os_error(path):\n> raise OSError(\"Simulated OSError\")\nE OSError: Simulated OSError\n\ntests/test_io_utils.py:55: OSError"}, "teardown": {"duration": 0.00016133999451994896, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "lineno": 58, "outcome": "passed", "keywords": ["test_write_file_readonly", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0005963610019534826, "outcome": "passed"}, "call": {"duration": 0.0008861339883878827, "outcome": "passed"}, "teardown": {"duration": 0.00013706297613680363, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "lineno": 66, "outcome": "failed", "keywords": ["test_file_not_found_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011336000170558691, "outcome": "passed"}, "call": {"duration": 0.0001638949615880847, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found_error():\n # Raises FileNotFoundError when opening a non-existent file\n> open(\"no_such_file.txt\", \"r\")\nE FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'\n\ntests/test_io_utils.py:69: FileNotFoundError"}, "teardown": {"duration": 0.0001348499208688736, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken", "lineno": 13, "outcome": "failed", "keywords": ["test_broken", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013047794345766306, "outcome": "passed"}, "call": {"duration": 0.00014975201338529587, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 16, "message": "NameError: name 'want_the_test_to_fail' is not defined"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 16, "message": "NameError"}], "longrepr": "def test_broken():\n # simulating a broken or faulty test implementation that will cause the test to error\n> want_the_test_to_fail\nE NameError: name 'want_the_test_to_fail' is not defined\n\ntests/test_math_utils.py:16: NameError"}, "teardown": {"duration": 0.00013582699466496706, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "lineno": 17, "outcome": "failed", "keywords": ["test_call_missing_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011444406118243933, "outcome": "passed"}, "call": {"duration": 0.00014833698514848948, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 20, "message": "AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 20, "message": "AttributeError"}], "longrepr": "def test_call_missing_function():\n # Accessing a missing function attribute raises AttributeError\n> getattr(math_utils, \"non_existent_function\")()\nE AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'\n\ntests/test_math_utils.py:20: AttributeError"}, "teardown": {"duration": 0.00013490801211446524, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002776749897748232, "outcome": "passed"}, "call": {"duration": 0.0001416270388290286, "outcome": "passed"}, "teardown": {"duration": 0.0001385319046676159, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024887907784432173, "outcome": "passed"}, "call": {"duration": 0.00012758502271026373, "outcome": "passed"}, "teardown": {"duration": 0.00013808696530759335, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024539302103221416, "outcome": "passed"}, "call": {"duration": 0.0001297350972890854, "outcome": "passed"}, "teardown": {"duration": 0.00013301195576786995, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023563706781715155, "outcome": "passed"}, "call": {"duration": 0.00012562808115035295, "outcome": "passed"}, "teardown": {"duration": 0.00013065896928310394, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002491059713065624, "outcome": "passed"}, "call": {"duration": 0.00012672599405050278, "outcome": "passed"}, "teardown": {"duration": 0.0001317609567195177, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002305570524185896, "outcome": "passed"}, "call": {"duration": 0.0001263660378754139, "outcome": "passed"}, "teardown": {"duration": 0.00013120099902153015, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00023788795806467533, "outcome": "passed"}, "call": {"duration": 0.00012124702334403992, "outcome": "passed"}, "teardown": {"duration": 0.00012602400965988636, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002488209865987301, "outcome": "passed"}, "call": {"duration": 0.0001257730182260275, "outcome": "passed"}, "teardown": {"duration": 0.00013273709919303656, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001102800015360117, "outcome": "passed"}, "call": {"duration": 0.0003902410389855504, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:51: AssertionError"}, "teardown": {"duration": 0.00013381498865783215, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011568400077521801, "outcome": "passed"}, "call": {"duration": 0.00014994200319051743, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.0001353059196844697, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012603902723640203, "outcome": "passed"}, "call": {"duration": 0.00025724596343934536, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:60: AssertionError"}, "teardown": {"duration": 0.00013229309115558863, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001156800426542759, "outcome": "passed"}, "call": {"duration": 0.00014293892309069633, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:64: RuntimeError"}, "teardown": {"duration": 0.0001330990344285965, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011352298315614462, "outcome": "passed"}, "call": {"duration": 0.0001425930531695485, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:68: MemoryError"}, "teardown": {"duration": 0.00013273500371724367, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011568807531148195, "outcome": "passed"}, "call": {"duration": 0.00014533998910337687, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:72: TimeoutError"}, "teardown": {"duration": 0.00013132602907717228, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011846900451928377, "outcome": "passed"}, "call": {"duration": 0.0006714920746162534, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00013326096814125776, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011379504576325417, "outcome": "passed"}, "call": {"duration": 0.00014225393533706665, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.00014493695925921202, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011554500088095665, "outcome": "passed"}, "call": {"duration": 0.00014796596951782703, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:86: OverflowError"}, "teardown": {"duration": 0.0001319770235568285, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001193369971588254, "outcome": "passed"}, "call": {"duration": 0.00015111302491277456, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:90: ValueError"}, "teardown": {"duration": 0.0001295000547543168, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011738308239728212, "outcome": "passed"}, "call": {"duration": 0.0001479260390624404, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:94: TypeError"}, "teardown": {"duration": 0.00012996990699321032, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011276605073362589, "outcome": "passed"}, "call": {"duration": 0.0001432819990441203, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:98: Exception"}, "teardown": {"duration": 0.0001334690023213625, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011279003228992224, "outcome": "passed"}, "call": {"duration": 0.00014335603918880224, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:102: CustomError"}, "teardown": {"duration": 0.00013147108256816864, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011866097338497639, "outcome": "passed"}, "call": {"duration": 0.00014405010733753443, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f42d99dd9d0>\nwhen = 'call'\nreraise = (, )\n\n @classmethod\n def from_call(\n cls,\n func: Callable[[], TResult],\n when: Literal[\"collect\", \"setup\", \"call\", \"teardown\"],\n reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,\n ) -> CallInfo[TResult]:\n \"\"\"Call func, wrapping the result in a CallInfo.\n \n :param func:\n The function to call. Called without arguments.\n :type func: Callable[[], _pytest.runner.TResult]\n :param when:\n The phase in which the function is called.\n :param reraise:\n Exception or exceptions that shall propagate if raised by the\n function, instead of being wrapped in the CallInfo.\n \"\"\"\n excinfo = None\n start = timing.time()\n precise_start = timing.perf_counter()\n try:\n> result: TResult | None = func()\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in \n lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call\n yield from thread_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call\n yield from unraisable_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call\n yield from self._runtest_for(item, \"call\")\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for\n yield\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = _capture_fixture=None>\nitem = \n\n @hookimpl(wrapper=True)\n def pytest_runtest_call(self, item: Item) -> Generator[None]:\n with self.item_capture(\"call\", item):\n> return (yield)\nE RuntimeError: generator raised StopIteration\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError"}, "teardown": {"duration": 0.00019475503358989954, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012717698700726032, "outcome": "passed"}, "call": {"duration": 0.00015497696585953236, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.00016017397865653038, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013483292423188686, "outcome": "passed"}, "call": {"duration": 0.00016208307351917028, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:114: SyntaxError"}, "teardown": {"duration": 0.00013376690912991762, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011452601756900549, "outcome": "passed"}, "call": {"duration": 0.00014442496467381716, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:118: SystemExit"}, "teardown": {"duration": 0.0001323659671470523, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011350598651915789, "outcome": "passed"}, "call": {"duration": 0.00014856294728815556, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:123: TypeError"}, "teardown": {"duration": 0.0001348369987681508, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001192739000543952, "outcome": "passed"}, "call": {"duration": 0.00014678796287626028, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 127, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 127, "message": "ImportError"}], "longrepr": "def test_import_error():\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:127: ImportError"}, "teardown": {"duration": 0.0001329940278083086, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 128, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001158619998022914, "outcome": "passed"}, "call": {"duration": 0.00043355091474950314, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 131, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.0001386849908158183, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "lineno": 7, "outcome": "passed", "keywords": ["test_uppercase_normal", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012149102985858917, "outcome": "passed"}, "call": {"duration": 0.0001510379370301962, "outcome": "passed"}, "teardown": {"duration": 9.946199133992195e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "failed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010247807949781418, "outcome": "passed"}, "call": {"duration": 0.00013752898667007685, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/string_utils.py", "lineno": 3, "message": "TypeError: Input cannot be None"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 14, "message": ""}, {"path": "functions/string_utils.py", "lineno": 3, "message": "TypeError"}], "longrepr": "def test_uppercase_type_error():\n # TypeError when input is None (invalid input)\n> uppercase(None)\n\ntests/test_string_utils.py:14: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ns = None\n\n def uppercase(s):\n if s is None:\n> raise TypeError(\"Input cannot be None\")\nE TypeError: Input cannot be None\n\nfunctions/string_utils.py:3: TypeError"}, "teardown": {"duration": 0.000137980910949409, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 15, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011413800530135632, "outcome": "passed"}, "call": {"duration": 0.00014935294166207314, "outcome": "passed"}, "teardown": {"duration": 0.00010650802869349718, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 19, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001030659768730402, "outcome": "passed"}, "call": {"duration": 0.00013619405217468739, "outcome": "passed"}, "teardown": {"duration": 9.600806515663862e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00010048400145024061, "outcome": "passed"}, "call": {"duration": 0.00014056498184800148, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_error():\n # UnicodeDecodeError when decoding invalid byte sequence\n> b'\\xff'.decode('utf-8')\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n\ntests/test_string_utils.py:26: UnicodeDecodeError"}, "teardown": {"duration": 0.00013082206714898348, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 27, "outcome": "failed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011530297342687845, "outcome": "passed"}, "call": {"duration": 0.00015213992446660995, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_surrogateescape():\n # UnicodeDecodeError with strict error handler on invalid byte\n> b\"\\x80\".decode(\"utf-8\", errors=\"strict\")\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\n\ntests/test_string_utils.py:30: UnicodeDecodeError"}, "teardown": {"duration": 0.00013316795229911804, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 31, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011829996947199106, "outcome": "passed"}, "call": {"duration": 0.0001316770212724805, "outcome": "passed"}, "teardown": {"duration": 0.00010366796050220728, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001244790619239211, "outcome": "passed"}, "call": {"duration": 0.0005735300946980715, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 39, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 39, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure: uppercase does not handle digits\")\n def test_xfail_uppercase_digits():\n # Expected fail test because uppercase won't change digits\n> assert uppercase(\"abc123\") == \"ABC1234\"\nE AssertionError: assert 'ABC123' == 'ABC1234'\nE \nE - ABC1234\nE ? -\nE + ABC123\n\ntests/test_string_utils.py:39: AssertionError"}, "teardown": {"duration": 0.00013303395826369524, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 40, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011635501869022846, "outcome": "passed"}}], "warnings": [{"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 22}]} \ No newline at end of file +{"created": 1752626707.898812, "duration": 0.7061295509338379, "exitcode": 2, "root": "/workspace/tligui_y/slic", "environment": {}, "summary": {"passed": 16, "failed": 31, "xfailed": 2, "total": 49, "collected": 49}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": ".", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/data", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/export", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/history", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/behaviors", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/packages", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure/plugin", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/plugin/behaviors", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/packages", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin/screen-diff", "type": "Dir"}]}, {"nodeid": "ci-reports/allure/widgets", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/allure", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure/data", "type": "Dir"}, {"nodeid": "ci-reports/allure/export", "type": "Dir"}, {"nodeid": "ci-reports/allure/history", "type": "Dir"}, {"nodeid": "ci-reports/allure/plugin", "type": "Dir"}, {"nodeid": "ci-reports/allure/widgets", "type": "Dir"}]}, {"nodeid": "ci-reports/coverage", "outcome": "passed", "result": []}, {"nodeid": "ci-reports/markdown", "outcome": "passed", "result": []}, {"nodeid": "ci-reports", "outcome": "passed", "result": [{"nodeid": "ci-reports/allure", "type": "Dir"}, {"nodeid": "ci-reports/coverage", "type": "Dir"}, {"nodeid": "ci-reports/markdown", "type": "Dir"}]}, {"nodeid": "functions", "outcome": "passed", "result": []}, {"nodeid": "tests/test_broken_fct.py", "outcome": "failed", "result": [], "longrepr": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule\n mod = import_path(\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:175: in exec_module\n source_stat, co = _rewrite_test(fn, self.config)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:355: in _rewrite_test\n tree = ast.parse(source, filename=strfn)\n.pixi/envs/default/lib/python3.8/ast.py:47: in parse\n return compile(source, filename, mode, flags,\nE File \"/workspace/tligui_y/slic/tests/test_broken_fct.py\", line 8\nE def test_valid_2():\nE ^\nE SyntaxError: invalid syntax"}, {"nodeid": "tests/test_collector_error.py", "outcome": "failed", "result": [], "longrepr": "ImportError while importing test module '/workspace/tligui_y/slic/tests/test_collector_error.py'.\nHint: make sure your test modules/packages have valid Python names.\nTraceback:\n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\ntests/test_collector_error.py:1: in \n from no_existing_module.math_utils import *\nE ModuleNotFoundError: No module named 'no_existing_module'"}, {"nodeid": "tests/test_io_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_io_utils.py::test_read_file", "type": "Function", "lineno": 9}, {"nodeid": "tests/test_io_utils.py::test_write_file", "type": "Function", "lineno": 16}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "type": "Function", "lineno": 26}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "type": "Function", "lineno": 30}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "type": "Function", "lineno": 37}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "type": "Function", "lineno": 45}, {"nodeid": "tests/test_io_utils.py::test_os_error", "type": "Function", "lineno": 51}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "type": "Function", "lineno": 58}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "type": "Function", "lineno": 66}]}, {"nodeid": "tests/test_math_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_math_utils.py::test_broken", "type": "Function", "lineno": 13}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "type": "Function", "lineno": 17}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "type": "Function", "lineno": 22}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "type": "Function", "lineno": 36}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "type": "Function", "lineno": 48}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "type": "Function", "lineno": 52}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "type": "Function", "lineno": 56}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "type": "Function", "lineno": 61}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "type": "Function", "lineno": 65}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "type": "Function", "lineno": 69}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "type": "Function", "lineno": 73}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "type": "Function", "lineno": 79}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "type": "Function", "lineno": 83}, {"nodeid": "tests/test_math_utils.py::test_value_error", "type": "Function", "lineno": 87}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "type": "Function", "lineno": 91}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "type": "Function", "lineno": 95}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "type": "Function", "lineno": 99}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "type": "Function", "lineno": 103}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "type": "Function", "lineno": 107}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "type": "Function", "lineno": 111}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "type": "Function", "lineno": 115}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "type": "Function", "lineno": 119}, {"nodeid": "tests/test_math_utils.py::test_import_error", "type": "Function", "lineno": 125}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "type": "Function", "lineno": 128}]}, {"nodeid": "tests/test_string_utils.py", "outcome": "passed", "result": [{"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "type": "Function", "lineno": 7}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "type": "Function", "lineno": 11}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "type": "Function", "lineno": 15}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "type": "Function", "lineno": 19}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "type": "Function", "lineno": 23}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "type": "Function", "lineno": 27}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "type": "Function", "lineno": 31}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "type": "Function", "lineno": 35}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "type": "Function", "lineno": 40}]}, {"nodeid": "tests", "outcome": "passed", "result": [{"nodeid": "tests/test_broken_fct.py", "type": "Module"}, {"nodeid": "tests/test_collector_error.py", "type": "Module"}, {"nodeid": "tests/test_io_utils.py", "type": "Module"}, {"nodeid": "tests/test_math_utils.py", "type": "Module"}, {"nodeid": "tests/test_string_utils.py", "type": "Module"}]}, {"nodeid": ".", "outcome": "passed", "result": [{"nodeid": "ci-reports", "type": "Dir"}, {"nodeid": "functions", "type": "Package"}, {"nodeid": "tests", "type": "Dir"}]}], "tests": [{"nodeid": "tests/test_io_utils.py::test_read_file", "lineno": 9, "outcome": "passed", "keywords": ["test_read_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0032124939607456326, "outcome": "passed"}, "call": {"duration": 0.00041954300832003355, "outcome": "passed"}, "teardown": {"duration": 0.0002781730145215988, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file", "lineno": 16, "outcome": "passed", "keywords": ["test_write_file", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00046084600035101175, "outcome": "passed"}, "call": {"duration": 0.0002813038881868124, "outcome": "passed"}, "teardown": {"duration": 0.00013970094732940197, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_cause_io_error", "lineno": 22, "outcome": "failed", "keywords": ["test_cause_io_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011831207666546106, "outcome": "passed"}, "call": {"duration": 0.00017507793381810188, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 10, "message": "OSError: Forced IO Error for testing"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 25, "message": ""}, {"path": "functions/io_utils.py", "lineno": 10, "message": "OSError"}], "longrepr": "def test_cause_io_error():\n # Raises manual IOError to simulate IO failure\n> cause_io_error()\n\ntests/test_io_utils.py:25: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n def cause_io_error():\n> raise IOError(\"Forced IO Error for testing\")\nE OSError: Forced IO Error for testing\n\nfunctions/io_utils.py:10: OSError"}, "teardown": {"duration": 0.00014118896797299385, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found", "lineno": 26, "outcome": "failed", "keywords": ["test_file_not_found", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011908600572496653, "outcome": "passed"}, "call": {"duration": 0.00017142598517239094, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 29, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found():\n # Reading non-existing file raises FileNotFoundError\n> read_file(\"nonexistent.file\")\n\ntests/test_io_utils.py:29: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'nonexistent.file'\n\n def read_file(path):\n> with open(path, \"r\", encoding=\"utf-8\") as f:\nE FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.file'\n\nfunctions/io_utils.py:2: FileNotFoundError"}, "teardown": {"duration": 0.00013927894178777933, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_permission_error", "lineno": 30, "outcome": "failed", "keywords": ["test_permission_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00020767992828041315, "outcome": "passed"}, "call": {"duration": 0.0001713800011202693, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 34, "message": "PermissionError: Permission denied"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 36, "message": ""}, {"path": "functions/io_utils.py", "lineno": 2, "message": "in read_file"}, {"path": "tests/test_io_utils.py", "lineno": 34, "message": "PermissionError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0008436160>\n\n def test_permission_error(monkeypatch):\n # Patch open to raise PermissionError simulating access denial\n def raise_perm_error(*args, **kwargs):\n raise PermissionError(\"Permission denied\")\n monkeypatch.setattr(\"builtins.open\", raise_perm_error)\n> read_file(\"anyfile.txt\")\n\ntests/test_io_utils.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nfunctions/io_utils.py:2: in read_file\n with open(path, \"r\", encoding=\"utf-8\") as f:\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ('anyfile.txt', 'r'), kwargs = {'encoding': 'utf-8'}\n\n def raise_perm_error(*args, **kwargs):\n> raise PermissionError(\"Permission denied\")\nE PermissionError: Permission denied\n\ntests/test_io_utils.py:34: PermissionError"}, "teardown": {"duration": 0.00016562407836318016, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_mock_open_error", "lineno": 37, "outcome": "failed", "keywords": ["test_mock_open_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00019120401702821255, "outcome": "passed"}, "call": {"duration": 0.0032211770303547382, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError: Mocked IOError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 43, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1081, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1085, "message": "in _mock_call"}, {"path": ".pixi/envs/default/lib/python3.8/unittest/mock.py", "lineno": 1140, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0008bea940>\n\n def test_mock_open_error(monkeypatch):\n # Mock open() to raise IOError simulating read error\n mocked_open = mock.mock_open()\n mocked_open.side_effect = IOError(\"Mocked IOError\")\n monkeypatch.setattr(\"builtins.open\", mocked_open)\n> with open(\"file.txt\", \"r\") as f:\n\ntests/test_io_utils.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/unittest/mock.py:1081: in __call__\n return self._mock_call(*args, **kwargs)\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1085: in _mock_call\n return self._execute_mock_call(*args, **kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError')\n\n def _execute_mock_call(self, /, *args, **kwargs):\n # separate from _increment_mock_call so that awaited functions are\n # executed separately from their call, also AsyncMock overrides this method\n \n effect = self.side_effect\n if effect is not None:\n if _is_exception(effect):\n> raise effect\nE OSError: Mocked IOError\n\n.pixi/envs/default/lib/python3.8/unittest/mock.py:1140: OSError"}, "teardown": {"duration": 0.00030528404749929905, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_handle_closed_error", "lineno": 45, "outcome": "failed", "keywords": ["test_file_handle_closed_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00015014293603599072, "outcome": "passed"}, "call": {"duration": 0.00018620002083480358, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 50, "message": "ValueError: I/O operation on closed file"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 50, "message": "ValueError"}], "longrepr": "def test_file_handle_closed_error():\n # Accessing closed file raises ValueError\n f = io.StringIO(\"content\")\n f.close()\n> f.read()\nE ValueError: I/O operation on closed file\n\ntests/test_io_utils.py:50: ValueError"}, "teardown": {"duration": 0.000180813018232584, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_os_error", "lineno": 51, "outcome": "failed", "keywords": ["test_os_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024090392980724573, "outcome": "passed"}, "call": {"duration": 0.00019439705647528172, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 55, "message": "OSError: Simulated OSError"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 57, "message": ""}, {"path": "tests/test_io_utils.py", "lineno": 55, "message": "OSError"}], "longrepr": "monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f00083a9a90>\n\n def test_os_error(monkeypatch):\n # Patch os.remove to raise OSError simulating filesystem error\n def raise_os_error(path):\n raise OSError(\"Simulated OSError\")\n monkeypatch.setattr(\"os.remove\", raise_os_error)\n> os.remove(\"file.txt\")\n\ntests/test_io_utils.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\npath = 'file.txt'\n\n def raise_os_error(path):\n> raise OSError(\"Simulated OSError\")\nE OSError: Simulated OSError\n\ntests/test_io_utils.py:55: OSError"}, "teardown": {"duration": 0.00016792595852166414, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_write_file_readonly", "lineno": 58, "outcome": "passed", "keywords": ["test_write_file_readonly", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0006529109086841345, "outcome": "passed"}, "call": {"duration": 0.0011100360425189137, "outcome": "passed"}, "teardown": {"duration": 0.0001559309894219041, "outcome": "passed"}}, {"nodeid": "tests/test_io_utils.py::test_file_not_found_error", "lineno": 66, "outcome": "failed", "keywords": ["test_file_not_found_error", "test_io_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011339003685861826, "outcome": "passed"}, "call": {"duration": 0.00016836507711559534, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'"}, "traceback": [{"path": "tests/test_io_utils.py", "lineno": 69, "message": "FileNotFoundError"}], "longrepr": "def test_file_not_found_error():\n # Raises FileNotFoundError when opening a non-existent file\n> open(\"no_such_file.txt\", \"r\")\nE FileNotFoundError: [Errno 2] No such file or directory: 'no_such_file.txt'\n\ntests/test_io_utils.py:69: FileNotFoundError"}, "teardown": {"duration": 0.0001404029317200184, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken", "lineno": 13, "outcome": "failed", "keywords": ["test_broken", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013106397818773985, "outcome": "passed"}, "call": {"duration": 0.00017449399456381798, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 16, "message": "NameError: name 'want_the_test_to_fail' is not defined"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 16, "message": "NameError"}], "longrepr": "def test_broken():\n # simulating a broken or faulty test implementation that will cause the test to error\n> want_the_test_to_fail\nE NameError: name 'want_the_test_to_fail' is not defined\n\ntests/test_math_utils.py:16: NameError"}, "teardown": {"duration": 0.00016407505609095097, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_call_missing_function", "lineno": 17, "outcome": "failed", "keywords": ["test_call_missing_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011826097033917904, "outcome": "passed"}, "call": {"duration": 0.00015724601689726114, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 20, "message": "AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 20, "message": "AttributeError"}], "longrepr": "def test_call_missing_function():\n # Accessing a missing function attribute raises AttributeError\n> getattr(math_utils, \"non_existent_function\")()\nE AttributeError: module 'functions.math_utils' has no attribute 'non_existent_function'\n\ntests/test_math_utils.py:20: AttributeError"}, "teardown": {"duration": 0.0001389200333505869, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[2-2-4]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[2-2-4]", "parametrize", "pytestmark", "2-2-4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00030409195460379124, "outcome": "passed"}, "call": {"duration": 0.00014556501992046833, "outcome": "passed"}, "teardown": {"duration": 0.00013851502444595098, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[1-5-6]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[1-5-6]", "parametrize", "pytestmark", "1-5-6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002552509540691972, "outcome": "passed"}, "call": {"duration": 0.00013753201346844435, "outcome": "passed"}, "teardown": {"duration": 0.00013708195183426142, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-4-7]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-4-7]", "parametrize", "pytestmark", "3-4-7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002794320462271571, "outcome": "passed"}, "call": {"duration": 0.00013051496353000402, "outcome": "passed"}, "teardown": {"duration": 0.00013424200005829334, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-5-8]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-5-8]", "parametrize", "pytestmark", "3-5-8", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002620070008561015, "outcome": "passed"}, "call": {"duration": 0.00013170309830456972, "outcome": "passed"}, "teardown": {"duration": 0.00013393198605626822, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass[3-6-9]", "lineno": 22, "outcome": "passed", "keywords": ["test_addition_pass[3-6-9]", "parametrize", "pytestmark", "3-6-9", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0002530899364501238, "outcome": "passed"}, "call": {"duration": 0.00012940808665007353, "outcome": "passed"}, "teardown": {"duration": 0.0001336890272796154, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=2,b=2,expected=4]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=2,b=2,expected=4]", "parametrize", "pytestmark", "a=2,b=2,expected=4", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024184503126889467, "outcome": "passed"}, "call": {"duration": 0.00012536300346255302, "outcome": "passed"}, "teardown": {"duration": 0.00013107003178447485, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=1,b=5,expected=6]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=1,b=5,expected=6]", "parametrize", "pytestmark", "a=1,b=5,expected=6", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00025517004542052746, "outcome": "passed"}, "call": {"duration": 0.00013001204933971167, "outcome": "passed"}, "teardown": {"duration": 0.00013433501590043306, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_pass_id[a=3,b=4,expected=7]", "lineno": 36, "outcome": "passed", "keywords": ["test_addition_pass_id[a=3,b=4,expected=7]", "parametrize", "pytestmark", "a=3,b=4,expected=7", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00024250801652669907, "outcome": "passed"}, "call": {"duration": 0.00012630491983145475, "outcome": "passed"}, "teardown": {"duration": 0.00013650197070091963, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_addition_fail", "lineno": 48, "outcome": "failed", "keywords": ["test_addition_fail", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011623103637248278, "outcome": "passed"}, "call": {"duration": 0.000468683079816401, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 51, "message": "assert 4 == 5\n + where 4 = addition(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 51, "message": "AssertionError"}], "longrepr": "def test_addition_fail():\n # Assertion failure: expected incorrect result\n> assert addition(2, 2) == 5\nE assert 4 == 5\nE + where 4 = addition(2, 2)\n\ntests/test_math_utils.py:51: AssertionError"}, "teardown": {"duration": 0.00014047103468328714, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_division_zero", "lineno": 52, "outcome": "failed", "keywords": ["test_division_zero", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013273698277771473, "outcome": "passed"}, "call": {"duration": 0.0001594600034877658, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError: division by zero"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 55, "message": ""}, {"path": "functions/math_utils.py", "lineno": 5, "message": "ZeroDivisionError"}], "longrepr": "def test_division_zero():\n # Will raise ZeroDivisionError if not handled in division\n> division(1, 0)\n\ntests/test_math_utils.py:55: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\na = 1, b = 0\n\n def division(a, b):\n> return a / b\nE ZeroDivisionError: division by zero\n\nfunctions/math_utils.py:5: ZeroDivisionError"}, "teardown": {"duration": 0.00014066195581108332, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_multiply_xfail", "lineno": 56, "outcome": "xfailed", "keywords": ["test_multiply_xfail", "xfail", "pytestmark", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013623293489217758, "outcome": "passed"}, "call": {"duration": 0.00027274806052446365, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 60, "message": "assert 4 == 5\n + where 4 = multiply(2, 2)"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 60, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure\")\n def test_multiply_xfail():\n # Expected fail test (xfail): incorrect expected multiply result\n> assert multiply(2, 2) == 5\nE assert 4 == 5\nE + where 4 = multiply(2, 2)\n\ntests/test_math_utils.py:60: AssertionError"}, "teardown": {"duration": 0.0001392260892316699, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_runtime_error", "lineno": 61, "outcome": "failed", "keywords": ["test_runtime_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011605594772845507, "outcome": "passed"}, "call": {"duration": 0.00014882697723805904, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError: Forced runtime error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 64, "message": "RuntimeError"}], "longrepr": "def test_runtime_error():\n # Test raises an uncaught RuntimeError\n> raise RuntimeError(\"Forced runtime error\")\nE RuntimeError: Forced runtime error\n\ntests/test_math_utils.py:64: RuntimeError"}, "teardown": {"duration": 0.0001395359868183732, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_memory_error", "lineno": 65, "outcome": "failed", "keywords": ["test_memory_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011804199311882257, "outcome": "passed"}, "call": {"duration": 0.00018103409092873335, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 68, "message": "MemoryError: Simulated memory error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 68, "message": "MemoryError"}], "longrepr": "def test_memory_error():\n # Manually raise MemoryError to simulate out-of-memory condition\n> raise MemoryError(\"Simulated memory error\")\nE MemoryError: Simulated memory error\n\ntests/test_math_utils.py:68: MemoryError"}, "teardown": {"duration": 0.00013885798398405313, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_timeout_error", "lineno": 69, "outcome": "failed", "keywords": ["test_timeout_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012407498434185982, "outcome": "passed"}, "call": {"duration": 0.00014855805784463882, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError: Simulated timeout error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 72, "message": "TimeoutError"}], "longrepr": "def test_timeout_error():\n # Manually raise TimeoutError simulating timeout conditions\n> raise TimeoutError(\"Simulated timeout error\")\nE TimeoutError: Simulated timeout error\n\ntests/test_math_utils.py:72: TimeoutError"}, "teardown": {"duration": 0.00015042698942124844, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_recursion_error", "lineno": 73, "outcome": "failed", "keywords": ["test_recursion_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00014614500105381012, "outcome": "passed"}, "call": {"duration": 0.0008253359701484442, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 77, "message": "RecursionError: maximum recursion depth exceeded"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 78, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}, {"path": "tests/test_math_utils.py", "lineno": 77, "message": "in recursive"}], "longrepr": "def test_recursion_error():\n # Infinite recursion triggers RecursionError\n def recursive():\n return recursive()\n> recursive()\n\ntests/test_math_utils.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_math_utils.py:77: in recursive\n return recursive()\ntests/test_math_utils.py:77: in recursive\n return recursive()\nE RecursionError: maximum recursion depth exceeded\n!!! Recursion detected (same locals & position)"}, "teardown": {"duration": 0.00014915503561496735, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_error", "lineno": 79, "outcome": "failed", "keywords": ["test_floating_point_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012143992353230715, "outcome": "passed"}, "call": {"duration": 0.00015990110114216805, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError: Simulated floating point error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 82, "message": "FloatingPointError"}], "longrepr": "def test_floating_point_error():\n # Manually raise FloatingPointError\n> raise FloatingPointError(\"Simulated floating point error\")\nE FloatingPointError: Simulated floating point error\n\ntests/test_math_utils.py:82: FloatingPointError"}, "teardown": {"duration": 0.00014197290875017643, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_floating_point_overflow", "lineno": 83, "outcome": "failed", "keywords": ["test_floating_point_overflow", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012827105820178986, "outcome": "passed"}, "call": {"duration": 0.00015825999435037374, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 86, "message": "OverflowError: math range error"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 86, "message": "OverflowError"}], "longrepr": "def test_floating_point_overflow():\n # Exponential overflow triggers OverflowError\n> math.exp(1000)\nE OverflowError: math range error\n\ntests/test_math_utils.py:86: OverflowError"}, "teardown": {"duration": 0.00014978705439716578, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_value_error", "lineno": 87, "outcome": "failed", "keywords": ["test_value_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001232359791174531, "outcome": "passed"}, "call": {"duration": 0.00015633099246770144, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 90, "message": "ValueError: invalid literal for int() with base 10: 'invalid'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 90, "message": "ValueError"}], "longrepr": "def test_value_error():\n # ValueError on invalid integer conversion\n> int(\"invalid\")\nE ValueError: invalid literal for int() with base 10: 'invalid'\n\ntests/test_math_utils.py:90: ValueError"}, "teardown": {"duration": 0.00013652199413627386, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_wrong_argument_error", "lineno": 91, "outcome": "failed", "keywords": ["test_wrong_argument_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011533696670085192, "outcome": "passed"}, "call": {"duration": 0.00016626191791146994, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 94, "message": "TypeError: 'int' object is not iterable"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 94, "message": "TypeError"}], "longrepr": "def test_wrong_argument_error():\n # TypeError when passing wrong argument type to sum\n> sum(5)\nE TypeError: 'int' object is not iterable\n\ntests/test_math_utils.py:94: TypeError"}, "teardown": {"duration": 0.000134518020786345, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_unhandled_exception", "lineno": 95, "outcome": "failed", "keywords": ["test_unhandled_exception", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011721497867256403, "outcome": "passed"}, "call": {"duration": 0.0001493259333074093, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 98, "message": "Exception: Generic unhandled exception"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 98, "message": "Exception"}], "longrepr": "def test_unhandled_exception():\n # Raises generic unhandled Exception\n> raise Exception(\"Generic unhandled exception\")\nE Exception: Generic unhandled exception\n\ntests/test_math_utils.py:98: Exception"}, "teardown": {"duration": 0.00014090503100305796, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_custom_error", "lineno": 99, "outcome": "failed", "keywords": ["test_custom_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011717306915670633, "outcome": "passed"}, "call": {"duration": 0.00014699099119752645, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 102, "message": "test_math_utils.CustomError: Custom error simulation"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 102, "message": "CustomError"}], "longrepr": "def test_custom_error():\n # Raises user-defined CustomError exception\n> raise CustomError(\"Custom error simulation\")\nE test_math_utils.CustomError: Custom error simulation\n\ntests/test_math_utils.py:102: CustomError"}, "teardown": {"duration": 0.0001382959308102727, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_stop_iteration_direct", "lineno": 103, "outcome": "failed", "keywords": ["test_stop_iteration_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011639995500445366, "outcome": "passed"}, "call": {"duration": 0.00014972093049436808, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError: generator raised StopIteration"}, "traceback": [{"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 341, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py", "lineno": 242, "message": "in "}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py", "lineno": 513, "message": "in __call__"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py", "lineno": 120, "message": "in _hookexec"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 92, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py", "lineno": 68, "message": "in thread_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 95, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py", "lineno": 70, "message": "in unraisable_exception_runtest_hook"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 846, "message": "in pytest_runtest_call"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py", "lineno": 829, "message": "in _runtest_for"}, {"path": ".pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py", "lineno": 880, "message": "RuntimeError"}], "longrepr": "def test_stop_iteration_direct():\n # Directly raise StopIteration exception\n> raise StopIteration()\nE StopIteration\n\ntests/test_math_utils.py:106: StopIteration\n\nThe above exception was the direct cause of the following exception:\n\ncls = \nfunc = . at 0x7f0008b1e9d0>\nwhen = 'call'\nreraise = (, )\n\n @classmethod\n def from_call(\n cls,\n func: Callable[[], TResult],\n when: Literal[\"collect\", \"setup\", \"call\", \"teardown\"],\n reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,\n ) -> CallInfo[TResult]:\n \"\"\"Call func, wrapping the result in a CallInfo.\n \n :param func:\n The function to call. Called without arguments.\n :type func: Callable[[], _pytest.runner.TResult]\n :param when:\n The phase in which the function is called.\n :param reraise:\n Exception or exceptions that shall propagate if raised by the\n function, instead of being wrapped in the CallInfo.\n \"\"\"\n excinfo = None\n start = timing.time()\n precise_start = timing.perf_counter()\n try:\n> result: TResult | None = func()\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:341: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/site-packages/_pytest/runner.py:242: in \n lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_hooks.py:513: in __call__\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/pluggy/_manager.py:120: in _hookexec\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call\n yield from thread_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call\n yield from unraisable_exception_runtest_hook()\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/unraisableexception.py:70: in unraisable_exception_runtest_hook\n yield\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:846: in pytest_runtest_call\n yield from self._runtest_for(item, \"call\")\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/logging.py:829: in _runtest_for\n yield\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = _capture_fixture=None>\nitem = \n\n @hookimpl(wrapper=True)\n def pytest_runtest_call(self, item: Item) -> Generator[None]:\n with self.item_capture(\"call\", item):\n> return (yield)\nE RuntimeError: generator raised StopIteration\n\n.pixi/envs/default/lib/python3.8/site-packages/_pytest/capture.py:880: RuntimeError"}, "teardown": {"duration": 0.00021797593217343092, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_generator_exit_direct", "lineno": 107, "outcome": "failed", "keywords": ["test_generator_exit_direct", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001305559417232871, "outcome": "passed"}, "call": {"duration": 0.00017339398618787527, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 110, "message": "GeneratorExit"}], "longrepr": "def test_generator_exit_direct():\n # Directly raise GeneratorExit exception\n> raise GeneratorExit()\nE GeneratorExit\n\ntests/test_math_utils.py:110: GeneratorExit"}, "teardown": {"duration": 0.00015450490172952414, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_malformed_code", "lineno": 111, "outcome": "failed", "keywords": ["test_malformed_code", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012230698484927416, "outcome": "passed"}, "call": {"duration": 0.00016123498789966106, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 114, "message": " File \"\", line 1\n def bad(:\n ^\nSyntaxError: invalid syntax"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 114, "message": "SyntaxError"}], "longrepr": "def test_malformed_code():\n # SyntaxError when executing malformed Python code\n> exec(\"def bad(:\\n pass\")\nE File \"\", line 1\nE def bad(:\nE ^\nE SyntaxError: invalid syntax\n\ntests/test_math_utils.py:114: SyntaxError"}, "teardown": {"duration": 0.00024563190527260303, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_sys_exit", "lineno": 115, "outcome": "failed", "keywords": ["test_sys_exit", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012567592784762383, "outcome": "passed"}, "call": {"duration": 0.00014933908823877573, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 118, "message": "SystemExit: 1"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 118, "message": "SystemExit"}], "longrepr": "def test_sys_exit():\n # Simulate SystemExit via sys.exit\n> sys.exit(1)\nE SystemExit: 1\n\ntests/test_math_utils.py:118: SystemExit"}, "teardown": {"duration": 0.00013797602150589228, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_broken_function", "lineno": 119, "outcome": "failed", "keywords": ["test_broken_function", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012291304301470518, "outcome": "passed"}, "call": {"duration": 0.00015000405255705118, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 123, "message": "TypeError: Broken function"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 124, "message": ""}, {"path": "tests/test_math_utils.py", "lineno": 123, "message": "TypeError"}], "longrepr": "def test_broken_function():\n # Simulate broken function raising TypeError\n def broken_func(*args, **kwargs):\n raise TypeError(\"Broken function\")\n> broken_func()\n\ntests/test_math_utils.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\n\n def broken_func(*args, **kwargs):\n> raise TypeError(\"Broken function\")\nE TypeError: Broken function\n\ntests/test_math_utils.py:123: TypeError"}, "teardown": {"duration": 0.00013672898057848215, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_import_error", "lineno": 125, "outcome": "failed", "keywords": ["test_import_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011872604954987764, "outcome": "passed"}, "call": {"duration": 0.0001597539521753788, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_math_utils.py", "lineno": 127, "message": "ImportError: Simulated ImportError"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 127, "message": "ImportError"}], "longrepr": "def test_import_error():\n> raise ImportError(\"Simulated ImportError\")\nE ImportError: Simulated ImportError\n\ntests/test_math_utils.py:127: ImportError"}, "teardown": {"duration": 0.00013707100879400969, "outcome": "passed"}}, {"nodeid": "tests/test_math_utils.py::test_module_not_found_error", "lineno": 128, "outcome": "failed", "keywords": ["test_module_not_found_error", "test_math_utils.py", "tests", "slic", ""], "setup": {"duration": 0.000117736984975636, "outcome": "passed"}, "call": {"duration": 0.000441209995187819, "outcome": "failed", "crash": {"path": "", "lineno": 973, "message": "ModuleNotFoundError: No module named 'non_existent_module_xyz'"}, "traceback": [{"path": "tests/test_math_utils.py", "lineno": 131, "message": ""}, {"path": ".pixi/envs/default/lib/python3.8/importlib/__init__.py", "lineno": 127, "message": "in import_module"}, {"path": "", "lineno": 1014, "message": "in _gcd_import"}, {"path": "", "lineno": 991, "message": "in _find_and_load"}, {"path": "", "lineno": 973, "message": "ModuleNotFoundError"}], "longrepr": "def test_module_not_found_error():\n # Raises ModuleNotFoundError (subclass of ImportError) for missing module\n> importlib.import_module(\"non_existent_module_xyz\")\n\ntests/test_math_utils.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.pixi/envs/default/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nname = 'non_existent_module_xyz'\nimport_ = \n\n> ???\nE ModuleNotFoundError: No module named 'non_existent_module_xyz'\n\n:973: ModuleNotFoundError"}, "teardown": {"duration": 0.00014152401126921177, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_normal", "lineno": 7, "outcome": "passed", "keywords": ["test_uppercase_normal", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00013242510613054037, "outcome": "passed"}, "call": {"duration": 0.00014350295532494783, "outcome": "passed"}, "teardown": {"duration": 0.00010083499364554882, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_uppercase_type_error", "lineno": 11, "outcome": "failed", "keywords": ["test_uppercase_type_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011596805416047573, "outcome": "passed"}, "call": {"duration": 0.00013983796816319227, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/functions/string_utils.py", "lineno": 3, "message": "TypeError: Input cannot be None"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 14, "message": ""}, {"path": "functions/string_utils.py", "lineno": 3, "message": "TypeError"}], "longrepr": "def test_uppercase_type_error():\n # TypeError when input is None (invalid input)\n> uppercase(None)\n\ntests/test_string_utils.py:14: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ns = None\n\n def uppercase(s):\n if s is None:\n> raise TypeError(\"Input cannot be None\")\nE TypeError: Input cannot be None\n\nfunctions/string_utils.py:3: TypeError"}, "teardown": {"duration": 0.0001375690335407853, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_reverse_string", "lineno": 15, "outcome": "passed", "keywords": ["test_reverse_string", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011806597467511892, "outcome": "passed"}, "call": {"duration": 0.00013756798580288887, "outcome": "passed"}, "teardown": {"duration": 9.999203030019999e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_warning_emit", "lineno": 19, "outcome": "passed", "keywords": ["test_warning_emit", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.0001133560435846448, "outcome": "passed"}, "call": {"duration": 0.00013820105232298374, "outcome": "passed"}, "teardown": {"duration": 9.62310004979372e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_error", "lineno": 23, "outcome": "failed", "keywords": ["test_unicode_decode_error", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011290994007140398, "outcome": "passed"}, "call": {"duration": 0.00014772301074117422, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 26, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_error():\n # UnicodeDecodeError when decoding invalid byte sequence\n> b'\\xff'.decode('utf-8')\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n\ntests/test_string_utils.py:26: UnicodeDecodeError"}, "teardown": {"duration": 0.0001351529499515891, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_unicode_decode_surrogateescape", "lineno": 27, "outcome": "failed", "keywords": ["test_unicode_decode_surrogateescape", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011518795508891344, "outcome": "passed"}, "call": {"duration": 0.00016045907977968454, "outcome": "failed", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 30, "message": "UnicodeDecodeError"}], "longrepr": "def test_unicode_decode_surrogateescape():\n # UnicodeDecodeError with strict error handler on invalid byte\n> b\"\\x80\".decode(\"utf-8\", errors=\"strict\")\nE UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\n\ntests/test_string_utils.py:30: UnicodeDecodeError"}, "teardown": {"duration": 0.00014425499830394983, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_import_warning", "lineno": 31, "outcome": "passed", "keywords": ["test_import_warning", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011212797835469246, "outcome": "passed"}, "call": {"duration": 0.00013188994489610195, "outcome": "passed"}, "teardown": {"duration": 9.765697177499533e-05, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_xfail_uppercase_digits", "lineno": 35, "outcome": "xfailed", "keywords": ["test_xfail_uppercase_digits", "xfail", "pytestmark", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00012017902918159962, "outcome": "passed"}, "call": {"duration": 0.0005641139578074217, "outcome": "skipped", "crash": {"path": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 39, "message": "AssertionError: assert 'ABC123' == 'ABC1234'\n \n - ABC1234\n ? -\n + ABC123"}, "traceback": [{"path": "tests/test_string_utils.py", "lineno": 39, "message": "AssertionError"}], "longrepr": "@pytest.mark.xfail(reason=\"Expected failure: uppercase does not handle digits\")\n def test_xfail_uppercase_digits():\n # Expected fail test because uppercase won't change digits\n> assert uppercase(\"abc123\") == \"ABC1234\"\nE AssertionError: assert 'ABC123' == 'ABC1234'\nE \nE - ABC1234\nE ? -\nE + ABC123\n\ntests/test_string_utils.py:39: AssertionError"}, "teardown": {"duration": 0.00014610704965889454, "outcome": "passed"}}, {"nodeid": "tests/test_string_utils.py::test_keyboard_interrupt_direct", "lineno": 40, "outcome": "passed", "keywords": ["test_keyboard_interrupt_direct", "test_string_utils.py", "tests", "slic", ""], "setup": {"duration": 0.00011462299153208733, "outcome": "passed"}}], "warnings": [{"message": "Test warning", "category": "UserWarning", "when": "runtest", "filename": "/workspace/tligui_y/slic/tests/test_string_utils.py", "lineno": 22}]} \ No newline at end of file diff --git a/ci-reports/markdown/raw-test-output.log b/ci-reports/markdown/raw-test-output.log index b762ed83..e3b8ea39 100644 --- a/ci-reports/markdown/raw-test-output.log +++ b/ci-reports/markdown/raw-test-output.log @@ -1,7 +1,7 @@ ============================= test session starts ============================== platform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0 rootdir: /workspace/tligui_y/slic -plugins: html-4.1.1, allure-pytest-2.13.5, metadata-3.1.1, cov-5.0.0, json-report-1.5.0, md-report-0.6.2 +plugins: cov-5.0.0, metadata-3.1.1, allure-pytest-2.13.5, html-4.1.1, json-report-1.5.0, md-report-0.6.2 collected 49 items / 2 errors tests/test_io_utils.py ..FFFFFF.F @@ -76,7 +76,7 @@ E FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent.fil functions/io_utils.py:2: FileNotFoundError ____________________________ test_permission_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72882b0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0008436160> def test_permission_error(monkeypatch): # Patch open to raise PermissionError simulating access denial @@ -100,7 +100,7 @@ E PermissionError: Permission denied tests/test_io_utils.py:34: PermissionError _____________________________ test_mock_open_error _____________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d72ba6d0> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0008bea940> def test_mock_open_error(monkeypatch): # Mock open() to raise IOError simulating read error @@ -117,7 +117,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = args = ('file.txt', 'r'), kwargs = {}, effect = OSError('Mocked IOError') def _execute_mock_call(self, /, *args, **kwargs): @@ -143,7 +143,7 @@ E ValueError: I/O operation on closed file tests/test_io_utils.py:50: ValueError ________________________________ test_os_error _________________________________ -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f42d9368e20> +monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f00083a9a90> def test_os_error(monkeypatch): # Patch os.remove to raise OSError simulating filesystem error @@ -311,7 +311,7 @@ tests/test_math_utils.py:106: StopIteration The above exception was the direct cause of the following exception: cls = -func = . at 0x7f42d99dd9d0> +func = . at 0x7f0008b1e9d0> when = 'call' reraise = (, ) @@ -440,7 +440,7 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'non_existent_module_xyz' -import_ = +import_ = > ??? E ModuleNotFoundError: No module named 'non_existent_module_xyz' @@ -533,4 +533,4 @@ ERROR tests/test_collector_error.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /workspace/tligui_y/slic/tests/test_string_utils.py:43: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) -======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.67s ========= +======== 31 failed, 15 passed, 2 xfailed, 1 warning, 2 errors in 0.70s =========