File: test_coverup_73.py

package info (click to toggle)
scalene 1.5.51-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,528 kB
  • sloc: cpp: 22,930; python: 13,403; javascript: 11,769; ansic: 817; makefile: 196; sh: 45
file content (16 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# file scalene/scalene_profiler.py:300-311
# lines [300, 301, 302, 308, 309, 311]
# branches []

import pytest
import signal
from scalene.scalene_profiler import Scalene

def test_interruption_handler():
    with pytest.raises(KeyboardInterrupt):
        Scalene.interruption_handler(signal.SIGINT, None)

def test_cleanup():
    # This test function is used to clean up after the test_interruption_handler
    # Since the interruption handler raises an exception, there is no state to clean up.
    pass