File: __init__.py

package info (click to toggle)
python-hupper 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: python: 1,668; makefile: 149
file content (12 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
import pytest_cov.embed
import signal
import sys


def cleanup(*args, **kwargs):  # pragma: no cover
    # see https://github.com/pytest-dev/pytest-cov/issues/139
    pytest_cov.embed.cleanup()
    sys.exit(1)


signal.signal(signal.SIGTERM, cleanup)