提交 56c30e03 authored 作者: Dhruvanshu-Joshi's avatar Dhruvanshu-Joshi 提交者: Ricardo Vieira

Solve test errors in new assert string representation

上级 90a66604
...@@ -24,7 +24,7 @@ def test_CheckAndRaise_str(): ...@@ -24,7 +24,7 @@ def test_CheckAndRaise_str():
check_and_raise = CheckAndRaise(CustomException, exc_msg) check_and_raise = CheckAndRaise(CustomException, exc_msg)
assert ( assert (
str(check_and_raise) str(check_and_raise)
== f"CheckAndRaise{{{CustomException}(this is the exception)}}" == f"CheckAndRaise{{raises=CustomException, msg='{exc_msg}'}}"
) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论