有人可以解释 pytest 错误输出中的“+”和“-”是什么吗?

can someone explain what are the '+' and '-' in the error output of pytest?

在下面的示例中,有人可以解释一下“-”和“+”的作用吗?

import  pytest
assert  'foo 1 bar' == 'foo 2 bar'

E   –   foo   1   bar
E   ?         ^   bar
E   +   foo   2   bar
E   ?         ^

- 符号表示断言左侧部分而非右侧部分的内容。

+ 符号表示某些东西在断言的右边而不是左边。