在使用pytest做测试时,出现“AttributeError:‘str’object has no attribute’xx’”错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Al\AppData\Local\Programs\Python\Python38\lib\site-packages\pytest\__init__.py", line 6, in <module>
from _pytest.assertion import register_assert_rewrite
File "C:\Users\Al\AppData\Local\Programs\Python\Python38\lib\site-packages\_pytest\assertion\__init__.py", line 7, in <module>
from _pytest.assertio