python+pytest+appium报错

报错提示:
File "/Users/xc/PycharmProjects/AndroidAutoTestPlatform/venv/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory

lambda p: Path(os.path.abspath(six.text_type(p)))

TypeError: attrib() got an unexpected keyword argument 'convert'
PyDev console: starting.
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 26 2018, 19:50:54)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin

用到的版本 attr 19.5.0; pytest 4.0.2 python3.6

解决办法:
pytest的版本已经减低到其他人说的合理版本了,还是不可用,于是attr降版本到19.1.0 停止报错

你可能感兴趣的:(pytest)