<gh_stars>0
# Use the raises to assert that some code raises an exception

import pytest

def f():
    raise SystemExit(1)

def test_mytest():
    with pytest.raises(SystemExit):
        f()
# Use the raises to assert that some code raises an exception

import pytest

def f():
    raise SystemExit(1)

def test_mytest():
    with pytest.raises(SystemExit):
        f()
# Use the raises to assert that some code raises an exception