diff options
author | prettyboy <prettyboy@yandex-team.com> | 2023-01-20 16:33:46 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2023-01-20 16:33:46 +0300 |
commit | c6a952a6e1eda08c6e1742ec1170691cec3670da (patch) | |
tree | b28ddb53b5ce194482167c04cadc532353b1193d /library/python/pytest/ut/canondata/py3test | |
parent | 5c6ff1d7c6908ac41bcd7b4711c1396809d4b0a8 (diff) | |
download | ydb-c6a952a6e1eda08c6e1742ec1170691cec3670da.tar.gz |
[library/python/pytest] Better py3 colorization
Diffstat (limited to 'library/python/pytest/ut/canondata/py3test')
3 files changed, 29 insertions, 0 deletions
diff --git a/library/python/pytest/ut/canondata/py3test/result.json b/library/python/pytest/ut/canondata/py3test/result.json new file mode 100644 index 0000000000..521cc45c6d --- /dev/null +++ b/library/python/pytest/ut/canondata/py3test/result.json @@ -0,0 +1,8 @@ +{ + "test_tools.test_colorize_pytest_error[nested_by]": { + "uri": "file://test_tools.test_colorize_pytest_error_nested_by_/extracted" + }, + "test_tools.test_colorize_pytest_error[simple_bt]": { + "uri": "file://test_tools.test_colorize_pytest_error_simple_bt_/extracted" + } +} diff --git a/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_nested_by_/extracted b/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_nested_by_/extracted new file mode 100644 index 0000000000..08effe9f30 --- /dev/null +++ b/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_nested_by_/extracted @@ -0,0 +1,15 @@ + +[[unimp]]path/test.py[[rst]]:[[alt2]]13[[rst]]: in [[alt1]]test[[rst]] + raise Exception("123 +123 +[[unimp]]path/test.py[[rst]]:[[alt2]]15[[rst]]: in [[alt1]]test")[[rst]] +[[bad]]E Exception: 123 +E 123 +E path/test.py:15: in test + +During handling of the above exception, another exception occurred: +[[unimp]]path/test.py[[rst]]:[[alt2]]15[[rst]]: in [[alt1]]test[[rst]] + return foo(0) +[[unimp]]path/test.py[[rst]]:[[alt2]]5[[rst]]: in [[alt1]]foo[[rst]] + b, a = 1, 1 / p +[[bad]]E ZeroDivisionError: division by zero diff --git a/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_simple_bt_/extracted b/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_simple_bt_/extracted new file mode 100644 index 0000000000..41d6246500 --- /dev/null +++ b/library/python/pytest/ut/canondata/py3test/test_tools.test_colorize_pytest_error_simple_bt_/extracted @@ -0,0 +1,6 @@ + +[[unimp]]path/test.py[[rst]]:[[alt2]]15[[rst]]: in [[alt1]]test[[rst]] + return foo(0) +[[unimp]]path/test.py[[rst]]:[[alt2]]5[[rst]]: in [[alt1]]foo[[rst]] + b, a = 1, 1 / p +[[bad]]E ZeroDivisionError: integer division or modulo by zero |