pytest-dev / pytest-repeat

pytest plugin for repeating test execution
https://pypi.python.org/pypi/pytest-repeat/
Other
169 stars 27 forks source link

Doesn't work with Tornado's gen_test #39

Closed guillochon closed 4 years ago

guillochon commented 4 years ago

Get the following traceback when trying to run a test using Tornado's gen_test:

pyfuncitem = <Function test_SendTransferRequest[1-10]>

    @pytest.mark.tryfirst
    def pytest_pyfunc_call(pyfuncitem):
        gen_test_mark = pyfuncitem.keywords.get('gen_test')
        if gen_test_mark:
            io_loop = pyfuncitem.funcargs.get('io_loop')
>           run_sync = gen_test_mark.kwargs.get('run_sync', True)
E           AttributeError: 'bool' object has no attribute 'kwargs'
guillochon commented 4 years ago

Looks like this was an unrelated issue related to a pytest version mismatch, closing. Sorry for the spam.