Invalid syntax in more-itertools when running pytest

梦想与她 提交于 2019-12-05 01:31:13

The recently released version 6.0 of more-itertools seems to have introduced this bug. The following should hot-fix it:

import setuptools

setuptools.setup(
    setup_requires=['pytest-runner'],
    tests_require=['mock', 'more-itertools<6.0.0', 'pytest'],
    test_suite='tests',
    python_requires='>=2.7',
)

The issue is already tracked here: https://github.com/pytest-dev/pytest/issues/4770

Credit: I just saw that @dzieciou already answered through the comments.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!