| Conditions | 5 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import os |
||
| 5 | def pytest_unconfigure(config): |
||
| 6 | htmlcov_path = os.path.join("htmlcov", "index.html") |
||
| 7 | if (hasattr(config.option, "cov_report") and |
||
| 8 | 'html' in config.option.cov_report and |
||
| 9 | os.path.isfile(htmlcov_path)): |
||
| 10 | try: |
||
| 11 | webbrowser.open_new_tab(htmlcov_path) |
||
| 12 | except webbrowser.Error: |
||
| 13 | pass |
||
| 14 |