We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144dd6e commit 84815c6Copy full SHA for 84815c6
tests/test_basics.py
@@ -223,7 +223,7 @@ def test_exception_mode():
223
assert str(e) == "my exception: 4", "wrong exception"
224
assert isinstance(e, ValueError), "wrong exception type"
225
assert type(e.__traceback__).__name__ == "traceback", "not a traceback"
226
- assert traceback.format_tb(e.__traceback__)[-1].endswith('in task_exception\n raise ValueError(f"my exception: {i}")\n'), "wrong callastack"
+ assert 'in task_exception\n raise ValueError(f"my exception: {i}")\n' in traceback.format_tb(e.__traceback__)[-1], "wrong callstack"
227
228
if __name__ == "__main__":
229
test_task_order()
0 commit comments