Skip to content

Commit

Permalink
py 311 adds additional newline at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
realratchet committed Mar 27, 2024
1 parent 144dd6e commit 84815c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_exception_mode():
assert str(e) == "my exception: 4", "wrong exception"
assert isinstance(e, ValueError), "wrong exception type"
assert type(e.__traceback__).__name__ == "traceback", "not a traceback"
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"

if __name__ == "__main__":
test_task_order()

0 comments on commit 84815c6

Please sign in to comment.