File: test_coverup_29.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 (13 lines) | stat: -rw-r--r-- 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# file scalene/scalene_parseargs.py:27-31
# lines [27, 28, 30, 31]
# branches []

import pytest
from scalene.scalene_parseargs import StopJupyterExecution

def test_stop_jupyter_execution():
    # Test the instantiation and the special method _render_traceback_
    try:
        raise StopJupyterExecution()
    except StopJupyterExecution as e:
        assert e._render_traceback_() is None