| 1 | Fixes the errors with use of asyncio in docrepr/tests/test_output.py: |
| 2 | |
| 3 | > await compare_screenshots(test_id, url) |
| 4 | E TypeError: 'coroutine' object is not callable |
| 5 | |
| 6 | |
| 7 | |
| 8 | def _open_browser(url): |
| 9 | |
| 10 | |
| 11 | @pytest.fixture |
| 12 | -async def compare_screenshots(request): |
| 13 | +def compare_screenshots(request): |
| 14 | """Run visual regression test on the output.""" |
| 15 | async def _compare_screenshots(test_id, url): |
| 16 | if (request.config.getoption(COMPARE_SCREENSHOTS_OPTION) or |