Skip to content

Commit 84815c6

Browse files
committed
py 311 adds additional newline at the end
1 parent 144dd6e commit 84815c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_exception_mode():
223223
assert str(e) == "my exception: 4", "wrong exception"
224224
assert isinstance(e, ValueError), "wrong exception type"
225225
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"
226+
assert 'in task_exception\n raise ValueError(f"my exception: {i}")\n' in traceback.format_tb(e.__traceback__)[-1], "wrong callstack"
227227

228228
if __name__ == "__main__":
229229
test_task_order()

0 commit comments

Comments
 (0)